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

            var testingTarget = new WidgetViewManager(widget.GetIntPtr(), false);

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"WidgetViewManagerConstructorWithIntPtr END (OK)");
        }
Beispiel #2
0
        public void WidgetViewManagerRemoveWidget()
        {
            tlog.Debug(tag, $"WidgetViewManagerRemoveWidget START");

            var testingTarget = new WidgetViewManager(widget.GetIntPtr(), false);

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

            View view = new View()
            {
                Size = new Size(100, 200),
            };
            WidgetView widgetView = new WidgetView(view.SwigCPtr.Handle, false);

            var result = testingTarget.RemoveWidget(widgetView);

            tlog.Debug(tag, "RemoveWidget : " + result);

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