/trunk/Examples/test-suite/csharp/typemap_namespace_runme.cs

# · C# · 16 lines · 10 code · 5 blank · 1 comment · 4 complexity · 465d709011cefabd0a7bb3decbd762e8 MD5 · raw file

  1. // This test tests all the methods in the C# collection wrapper
  2. using System;
  3. using typemap_namespaceNamespace;
  4. public class typemap_namespace_runme {
  5. public static void Main() {
  6. if (typemap_namespace.test1("hello") != "hello")
  7. throw new Exception("test1 failed");
  8. if (typemap_namespace.test2("hello") != "hello")
  9. throw new Exception("test2 failed");
  10. }
  11. }