Esempio n. 1
0
        public void WidgetImplSetImpl()
        {
            tlog.Debug(tag, $"WidgetImplSetImpl START");

            var testingTarget = new WidgetImpl();

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

            Widget widget = new Widget();

            try
            {
                testingTarget.SetImpl(new SWIGTYPE_p_Dali__Widget__Impl(widget.GetIntPtr()));
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            widget.Dispose();
            widget = null;

            testingTarget.Dispose();
            testingTarget = null;
            tlog.Debug(tag, $"WidgetImplSetImpl END (OK)");
        }
Esempio n. 2
0
        public void WidgetImplOnUpdate()
        {
            tlog.Debug(tag, $"WidgetImplOnUpdate START");

            var testingTarget = new WidgetImpl();

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

            try
            {
                testingTarget.OnUpdate("WidgetImplOnUpdate", 0);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();
            testingTarget = null;
            tlog.Debug(tag, $"WidgetImplOnUpdate END (OK)");
        }