Skip to content

Commit

Permalink
Made test program consist of two source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Feb 24, 2018
1 parent 0b6f90c commit f223aa5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test cases/csharp/1 basic/meson.build
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 3 additions & 2 deletions test cases/csharp/1 basic/prog.cs
Original file line number Diff line number Diff line change
@@ -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());
}
}
7 changes: 7 additions & 0 deletions test cases/csharp/1 basic/text.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System;

public class TextGetter {
public String getText() {
return "C# is working.";
}
}

0 comments on commit f223aa5

Please sign in to comment.