示例#1
0
 public void InvokeVirtualFromConstructor()
 {
     using (var t = new CallVirtualFromConstructorDerived(42)) {
         Assert.IsTrue(t.Called);
         Assert.IsNotNull(JniRuntime.CurrentRuntime.ValueManager.PeekValue(t.PeerReference));
     }
 }
示例#2
0
        public void ActivationConstructor()
        {
            var t = CallVirtualFromConstructorDerived.NewInstance(42);

            using (t) {
                Assert.IsTrue(t.InvokedActivationConstructor);
                Assert.IsTrue(t.InvokedConstructor);
            }
        }