public void InvokeVirtualFromConstructor() { using (var t = new CallVirtualFromConstructorDerived(42)) { Assert.IsTrue(t.Called); Assert.IsNotNull(JniRuntime.CurrentRuntime.ValueManager.PeekValue(t.PeerReference)); } }
public void ActivationConstructor() { var t = CallVirtualFromConstructorDerived.NewInstance(42); using (t) { Assert.IsTrue(t.InvokedActivationConstructor); Assert.IsTrue(t.InvokedConstructor); } }