Improve correctness of SwigDerivedClassHasMethod() tests

Tests first added in issue #1323
This commit is contained in:
Rokas Kupstys 2018-09-06 14:21:54 +03:00 committed by William S Fulton
commit ea3140a981
2 changed files with 28 additions and 2 deletions

View file

@ -48,6 +48,8 @@ public class runme
if (myNewBar == null)
throw new Exception("non-null pointer marshalling problem");
myNewBar.x = 10;
my.testSwigDerivedClassHasMethod();
}
}
}
@ -69,6 +71,14 @@ class MyOverriddenClass : MyClass {
throw new Exception("null not received as expected");
return b;
}
public bool nonVirtual() {
throw new Exception("non-virtual overrides virtual method");
}
public virtual bool nonOverride() {
throw new Exception("non-override overrides virtual method");
}
}
}