PageRenderTime 570ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
C# | 22 lines | 21 code | 1 blank | 0 comment | 12 complexity | 6c663b55a4e132ea4aa2c96eb70dac2a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. using System;
  2. using special_variable_macrosNamespace;
  3. public class runme {
  4. static void Main() {
  5. Name name = new Name();
  6. if (special_variable_macros.testFred(name) != "none")
  7. throw new Exception("test failed");
  8. if (special_variable_macros.testJack(name) != "$specialname")
  9. throw new Exception("test failed");
  10. if (special_variable_macros.testJill(name) != "jilly")
  11. throw new Exception("test failed");
  12. if (special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap")
  13. throw new Exception("test failed");
  14. if (special_variable_macros.testJim(name) != "multiname num")
  15. throw new Exception("test failed");
  16. if (special_variable_macros.testJohn(new PairIntBool(10, false)) != 123)
  17. throw new Exception("test failed");
  18. NewName newName = NewName.factory("factoryname");
  19. name = newName.getStoredName();
  20. }
  21. }