PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms 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
 1using System;
 2using special_variable_macrosNamespace;
 3
 4public class runme {
 5  static void Main() {
 6    Name name = new Name();
 7    if (special_variable_macros.testFred(name) != "none")
 8      throw new Exception("test failed");
 9    if (special_variable_macros.testJack(name) != "$specialname")
10      throw new Exception("test failed");
11    if (special_variable_macros.testJill(name) != "jilly")
12      throw new Exception("test failed");
13    if (special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap")
14      throw new Exception("test failed");
15    if (special_variable_macros.testJim(name) != "multiname num")
16      throw new Exception("test failed");
17    if (special_variable_macros.testJohn(new PairIntBool(10, false)) != 123)
18      throw new Exception("test failed");
19    NewName newName = NewName.factory("factoryname");
20    name = newName.getStoredName();
21  }
22}