public static void MethodParameter4(TSPoint arg1, TSSize arg2, TSRect arg3) {}
 public static void MethodParameter4_Monobjc_Types_TSPoint_Monobjc_Types_TSSize_Monobjc_Types_TSRect(IntPtr receiver, IntPtr selector, TSPoint arg1, TSSize arg2, TSRect arg3)
 {
     DummyClassVariousParametersVariableTypes.MethodParameter4(arg1, arg2, arg3);
 }
 public void Execute(IntPtr layout, TSPoint arg1, TSSize arg2, TSRect arg3)
 {
     ((Action<TSPoint, TSSize, TSRect>) base.Invoker)(arg1, arg2, arg3);
 }
 public static void MethodParameter4(out TSPoint arg1, out TSSize arg2, out TSRect arg3)
 {
     arg1 = new TSPoint();
     arg2 = new TSSize();
     arg3 = new TSRect();
 }
Beispiel #5
0
        public void TestMultipleIVar()
        {
            IVarTest04 varTest04 = new IVarTest04();

            varTest04.BoolProperty = true;
            Assert.AreEqual(true, varTest04.BoolProperty, "Bool property must be equals");

            varTest04.BoolProperty = false;
            Assert.AreEqual(false, varTest04.BoolProperty, "Bool property must be equals");

            short shortValue = (short) new Random().Next(-42, 42);
            varTest04.ShortProperty = shortValue;
            Assert.AreEqual(shortValue, varTest04.ShortProperty, "Short property must be equals");

            int intValue = new Random().Next(-42, 42);
            varTest04.IntProperty = intValue;
            Assert.AreEqual(intValue, varTest04.IntProperty, "Int property must be equals");

            long longValue = new Random().Next(-42, 42);
            varTest04.LongProperty = longValue;
            Assert.AreEqual(longValue, varTest04.LongProperty, "Long property must be equals");

            TSObject instanceValue = new TSObject();
            varTest04.InstanceProperty = instanceValue;
            Assert.AreEqual(instanceValue, varTest04.InstanceProperty, "Instance property must be equals");
            Assert.AreEqual(instanceValue.NativePointer, varTest04.InstanceProperty.NativePointer, "Instance property must be equals");

            TSRect rectValue = new TSRect();
            rectValue.origin.x = (uint) new Random().Next(0, 1000);
            rectValue.origin.y = (uint) new Random().Next(2000, 3000);
            rectValue.size.width = (uint) new Random().Next(500, 1000);
            rectValue.size.height = (uint) new Random().Next(4000, 5000);
            varTest04.RectProperty = rectValue;
            Assert.AreEqual(rectValue, varTest04.RectProperty, "Rect property must be equals");
            Assert.AreEqual(rectValue.origin, varTest04.RectProperty.origin, "Rect property origin must be equals");
            Assert.AreEqual(rectValue.size, varTest04.RectProperty.size, "Rect property size must be equals");

            varTest04.Release();
        }
Beispiel #6
0
 public TSBig(TSRect rect1, TSRect rect2)
 {
     this.rect1 = rect1;
     this.rect2 = rect2;
 }
Beispiel #7
0
 public void TestBigStructMessaging()
 {
     TSRect value1 = new TSRect(42, new Random().Next(-65000, 65000)*1.5f, new Random().Next(-65000, 65000)*1.5f, 42);
     Id value = ObjectiveCRuntime.SendMessage<Id>(this.cls_NSValue, "valueWithRect:", value1);
     Assert.AreNotEqual(IntPtr.Zero, value, "Value creation cannot failed");
     TSRect value2 = ObjectiveCRuntime.SendMessage<TSRect>(value, "rectValue");
     Assert.AreEqual(value1, value2, "Rect values must be equal");
 }
 public static void MethodParameter4_Monobjc_Types_TSString_Monobjc_Types_TSPoint_Monobjc_Types_TSSize_Monobjc_Types_TSRect(IntPtr receiver, IntPtr selector, TSPoint arg1, TSSize arg2, TSRect arg3)
 {
     ObjectiveCRuntime.GetInstance<TSString>(receiver).MethodParameter4(arg1, arg2, arg3);
 }
 public static void MethodParameter4(this TSString target, TSPoint arg1, TSSize arg2, TSRect arg3) {}