Example #1
0
        public void AnyContainerBasemContainer()
        {
            tlog.Debug(tag, $"AnyContainerBasemContainer START");

            using (Any any = new Any())
            {
                var testingTarget = new Any(any);
                Assert.IsNotNull(testingTarget, "Can't create success object Any");
                Assert.IsInstanceOf <Any>(testingTarget, "Should be an instance of Any type.");

                tlog.Debug(tag, "mContainer : " + testingTarget.mContainer);

                SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
                SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
                SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
                Any.AnyContainerBase container = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);

                try
                {
                    testingTarget.mContainer = container;
                    tlog.Debug(tag, "mContainer : " + testingTarget.mContainer);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"AnyContainerBasemContainer END (OK)");
        }
Example #2
0
        public void AnyContainerBaseConstructor()
        {
            tlog.Debug(tag, $"AnyContainerBaseConstructor START");

            SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
            SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
            SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);

            var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);

            Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
            Assert.IsInstanceOf <Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"AnyContainerBaseConstructor END (OK)");
        }