Пример #1
0
        public void TestStructIVar()
        {
            IVarTest03 varTest03 = new IVarTest03();

            TSRange rangeValue = new TSRange();
            rangeValue.location = (uint) new Random().Next(0, 1000);
            rangeValue.length = (uint) new Random().Next(3000, 6000);
            varTest03.RangeProperty = rangeValue;
            Assert.AreEqual(rangeValue, varTest03.RangeProperty, "Range property must be equals");
            Assert.AreEqual(rangeValue.location, varTest03.RangeProperty.location, "Range property location must be equals");
            Assert.AreEqual(rangeValue.length, varTest03.RangeProperty.length, "Range property length must be equals");

            varTest03.Release();
        }
 public static void MethodParameter3_Monobjc_Types_TSRange(IntPtr receiver, IntPtr selector, TSRange arg1)
 {
     ObjectiveCRuntime.GetInstance<DummyClassVariousParametersVariableTypes>(receiver).MethodParameter3(arg1);
 }
 public void MethodParameter3(TSRange arg1) {}
 public void MethodParameter3(out TSRange arg1)
 {
     arg1 = new TSRange();
 }
 public void Execute(IntPtr layout, TSRange arg1)
 {
     ((Action<TSRange>) base.Invoker)(arg1);
 }
 public static void MethodParameter3_Monobjc_Types_TSString_Monobjc_Types_TSRange(IntPtr receiver, IntPtr selector, TSRange arg1)
 {
     ObjectiveCRuntime.GetInstance<TSString>(receiver).MethodParameter3(arg1);
 }
 public static void MethodParameter3(this TSString target, TSRange arg1) {}