aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/csharp/1 basic
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/csharp/1 basic')
-rw-r--r--meson/test cases/csharp/1 basic/meson.build4
-rw-r--r--meson/test cases/csharp/1 basic/prog.cs8
-rw-r--r--meson/test cases/csharp/1 basic/test.json6
-rw-r--r--meson/test cases/csharp/1 basic/text.cs7
4 files changed, 25 insertions, 0 deletions
diff --git a/meson/test cases/csharp/1 basic/meson.build b/meson/test cases/csharp/1 basic/meson.build
new file mode 100644
index 000000000..09e46c293
--- /dev/null
+++ b/meson/test cases/csharp/1 basic/meson.build
@@ -0,0 +1,4 @@
+project('simple c#', 'cs')
+
+e = executable('prog', 'prog.cs', 'text.cs', install : true)
+test('basic', e)
diff --git a/meson/test cases/csharp/1 basic/prog.cs b/meson/test cases/csharp/1 basic/prog.cs
new file mode 100644
index 000000000..6ee47b074
--- /dev/null
+++ b/meson/test cases/csharp/1 basic/prog.cs
@@ -0,0 +1,8 @@
+using System;
+
+public class Prog {
+ static public void Main () {
+ TextGetter tg = new TextGetter();
+ Console.WriteLine(tg.getText());
+ }
+}
diff --git a/meson/test cases/csharp/1 basic/test.json b/meson/test cases/csharp/1 basic/test.json
new file mode 100644
index 000000000..650a6e208
--- /dev/null
+++ b/meson/test cases/csharp/1 basic/test.json
@@ -0,0 +1,6 @@
+{
+ "installed": [
+ {"type": "file", "file": "usr/bin/prog.exe"},
+ {"type": "pdb", "file": "usr/bin/prog"}
+ ]
+}
diff --git a/meson/test cases/csharp/1 basic/text.cs b/meson/test cases/csharp/1 basic/text.cs
new file mode 100644
index 000000000..c83c424c8
--- /dev/null
+++ b/meson/test cases/csharp/1 basic/text.cs
@@ -0,0 +1,7 @@
+using System;
+
+public class TextGetter {
+ public String getText() {
+ return "C# is working.";
+ }
+}