Exemplo n.º 1
0
        public void WatchApplicationgetCPtr()
        {
            tlog.Debug(tag, $"WatchApplicationgetCPtr START");

            using (ImageView imageView = new ImageView())
            {
                var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "should be not null");
                Assert.IsInstanceOf <WatchApplication>(testingTarget, "should be an instance of testing target class!");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WatchApplicationgetCPtr END (OK)");
        }
Exemplo n.º 2
0
        public void WatchApplicationConstructor()
        {
            tlog.Debug(tag, $"WatchApplicationConstructor START");

            using (ImageView imageView = new ImageView())
            {
                var testingTarget = new WatchApplication(imageView.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "should be not null");
                Assert.IsInstanceOf <WatchApplication>(testingTarget, "should be an instance of testing target class!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WatchApplicationConstructor END (OK)");
        }