Exemple #1
0
        public void DoubleReturnTest()
        {
            DoubleStretTrampolines obj = new DoubleStretTrampolines();
            IntPtr class_ptr           = Class.GetHandle("DoubleStretTrampolines");

            Assert.That(0 == Messaging.Double_objc_msgSend(obj.Handle, new Selector("Test_Zero").Handle), "#1");
            Assert.That(0 == Messaging.Double_objc_msgSend(class_ptr, new Selector("Test_StaticZero").Handle), "#2");
            Assert.That(0 == Messaging.Double_objc_msgSend(obj.Handle, new Selector("Test_ZeroProperty").Handle), "#3");
            Assert.That(0 == Messaging.Double_objc_msgSend(class_ptr, new Selector("Test_StaticZeroProperty").Handle), "#4");
        }