diff options
Diffstat (limited to 'Examples/test-suite/csharp/csharp_prepost_runme.cs')
-rw-r--r-- | Examples/test-suite/csharp/csharp_prepost_runme.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/test-suite/csharp/csharp_prepost_runme.cs b/Examples/test-suite/csharp/csharp_prepost_runme.cs index 8842a79b3..ca3979065 100644 --- a/Examples/test-suite/csharp/csharp_prepost_runme.cs +++ b/Examples/test-suite/csharp/csharp_prepost_runme.cs @@ -15,6 +15,11 @@ public class csharp_prepost_runme { Assert(vpost.Count, 2); vpost.Add(1.0); } + public override int methodint(ref double[] vpre, DoubleVector vpost) + { + method(ref vpre, vpost); + return vpost.Count; + } } public static void Main() { { @@ -58,6 +63,17 @@ public class csharp_prepost_runme { Assert(vpre[0], 2.0); Assert(vpost.Count, 3); } + { + PrePost3_Derived p = new PrePost3_Derived(); + double[] vpre = new double[] { 1.0 }; + DoubleVector vpost = new DoubleVector(); + vpost.Add(3.0); + vpost.Add(4.0); + int size = p.methodint(ref vpre, vpost); + Assert(vpre[0], 2.0); + Assert(vpost.Count, 3); + Assert(size, 3); + } // Check attributes are generated for the constructor helper function { |