More director const std::string& testing and C# leak fix

Issue #998
This commit is contained in:
William S Fulton 2022-02-13 22:55:27 +00:00
commit 8e4868af75
5 changed files with 60 additions and 4 deletions

View file

@ -15,6 +15,10 @@ public class runme
if (a.getA() != "Hello set from MyFoo") {
throw new Exception( "Test failed" );
}
a.setAByRef("Hello");
if (a.getA() != "Hello setAByRef from MyFoo") {
throw new Exception( "Test failed" );
}
a.Dispose();
}
@ -28,6 +32,10 @@ public class runme
if (a.getA() != "Hello set from MyFoo") {
throw new Exception( "Test failed" );
}
a.setAByRef("Hello");
if (a.getA() != "Hello setAByRef from MyFoo") {
throw new Exception( "Test failed" );
}
a.Dispose();
}
}
@ -44,6 +52,11 @@ public class MyFoo : Foo
{
base.setA(a + " set from MyFoo");
}
public override void setAByRef(string a)
{
base.setA(a + " setAByRef from MyFoo");
}
}
}