Made test program consist of two source files.

This commit is contained in:
Jussi Pakkanen 2018-02-25 01:21:35 +02:00
parent 0b6f90caf7
commit f223aa56a7
3 changed files with 11 additions and 3 deletions

View File

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

View File

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

View File

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