diff options
Diffstat (limited to 'Examples/test-suite/csharp/constover_runme.cs')
| -rw-r--r-- | Examples/test-suite/csharp/constover_runme.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Examples/test-suite/csharp/constover_runme.cs b/Examples/test-suite/csharp/constover_runme.cs new file mode 100644 index 0000000..bae7b38 --- /dev/null +++ b/Examples/test-suite/csharp/constover_runme.cs @@ -0,0 +1,34 @@ +using System; +using constoverNamespace; + +public class runme +{ + static void Main() + { + string p = constover.test("test"); + if ( p != "test" ) + throw new Exception( "test failed!" ); + + p = constover.test_pconst("test"); + if ( p != "test_pconst" ) + throw new Exception( "test_pconst failed!" ); + + Foo f = new Foo(); + p = f.test("test"); + if ( p != "test" ) + throw new Exception( "member-test failed!" ); + + p = f.test_pconst("test"); + if ( p != "test_pconst" ) + throw new Exception( "member-test_pconst failed!" ); + + p = f.test_constm("test"); + if ( p != "test_constmethod" ) + throw new Exception( "member-test_constm failed!" ); + + p = f.test_pconstm("test"); + if ( p != "test_pconstmethod" ) + throw new Exception( "member-test_pconstm failed!" ); + } +} + |
