Made test program consist of two source files.

pull/3132/head
Jussi Pakkanen 7 years ago
parent 0b6f90caf7
commit f223aa56a7
  1. 2
      test cases/csharp/1 basic/meson.build
  2. 3
      test cases/csharp/1 basic/prog.cs
  3. 7
      test cases/csharp/1 basic/text.cs

@ -1,4 +1,4 @@
project('simple c#', 'cs') project('simple c#', 'cs')
e = executable('prog', 'prog.cs', install : true) e = executable('prog', 'prog.cs', 'text.cs', install : true)
test('basic', e) test('basic', e)

@ -2,6 +2,7 @@ using System;
public class Prog { public class Prog {
static public void Main () { static public void Main () {
Console.WriteLine("C# is working."); TextGetter tg = new TextGetter();
Console.WriteLine(tg.getText());
} }
} }

@ -0,0 +1,7 @@
using System;
public class TextGetter {
public String getText() {
return "C# is working.";
}
}
Loading…
Cancel
Save