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

@ -23,6 +23,10 @@ public class director_property_runme {
if (!a.getA().equals("Hello set from MyFoo")) {
throw new RuntimeException( "Test failed" );
}
a.setAByRef("Hello");
if (!a.getA().equals("Hello setAByRef from MyFoo")) {
throw new RuntimeException( "Test failed" );
}
a.delete();
}
@ -36,6 +40,10 @@ public class director_property_runme {
if (!a.getA().equals("Hello set from MyFoo")) {
throw new RuntimeException( "Test failed" );
}
a.setAByRef("Hello");
if (!a.getA().equals("Hello setAByRef from MyFoo")) {
throw new RuntimeException( "Test failed" );
}
a.delete();
}
}
@ -49,6 +57,10 @@ class director_property_MyFoo extends Foo {
public void setA(String a) {
super.setA(a + " set from MyFoo");
}
@Override
public void setAByRef(String a) {
super.setA(a + " setAByRef from MyFoo");
}
}