Made test program consist of two source files.
This commit is contained in:
parent
0b6f90caf7
commit
f223aa56a7
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
public class TextGetter {
|
||||
public String getText() {
|
||||
return "C# is working.";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue