import source from 1.3.40
[external/swig.git] / Examples / test-suite / csharp / intermediary_classname_runme.cs
1
2 /***********************************************************************************************
3    NOTE: This is a custom testcase and should be run using make intermediary_classname.customtest
4  ***********************************************************************************************/
5
6 using System;
7 using intermediary_classnameNamespace;
8
9 public class runme
10 {
11     static void Main() 
12     {
13       // test the renamed module class is correctly named
14       double d = intermediary_classnameModule.maxdouble(10.0, 20.0);
15       if (d!=20.0) throw new Exception("Test failed");
16
17       // test the renamed intermediary class is correctly named
18       IntPtr ptr = intermediary_classname.new_vecdouble(10);
19       intermediary_classname.delete_vecdouble(new System.Runtime.InteropServices.HandleRef(null,ptr));
20     }
21 }