/tags/rel-1.3.35/Examples/test-suite/csharp/pointer_reference_runme.cs
C# | 18 lines | 11 code | 6 blank | 1 comment | 4 complexity | 61825a8794c4a9d2176b737c4e07686f MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- // This test tests all the methods in the C# collection wrapper
- using System;
- using pointer_referenceNamespace;
- public class pointer_reference_runme {
- public static void Main() {
- Struct s = pointer_reference.get();
- if (s.value != 10) throw new Exception("get test failed");
- Struct ss = new Struct(20);
- pointer_reference.set(ss);
- if (Struct.instance.value != 20) throw new Exception("set test failed");
- }
- }