Fix spacing in generated code for csdirectorin 'pre', 'post' and 'terminator' attributes. Add some more tests for these attributes.
This commit is contained in:
parent
2b407f4b27
commit
13d9e19cdb
3 changed files with 41 additions and 46 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue