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

            GestureDetector ret = new GestureDetector();

            Assert.IsNotNull(ret, "should be not null");
            Assert.IsInstanceOf <GestureDetector>(ret, "should be an instance of testing target class!");

            GestureDetector newOne = new GestureDetector(ret);

            Assert.IsNotNull(newOne, "should be not null");
            Assert.IsInstanceOf <GestureDetector>(newOne, "should be an instance of testing target class!");

            GestureDetector newTwo = new GestureDetector(GestureDetector.getCPtr(ret).Handle, true);

            Assert.IsNotNull(newTwo, "should be not null");
            Assert.IsInstanceOf <GestureDetector>(newTwo, "should be an instance of testing target class!");

            ret.Dispose();
            newOne.Dispose();
            newTwo.Dispose();
            tlog.Debug(tag, $"GestureDetectorConstructor END (OK)");
            Assert.Pass("GestureDetectorConstructor");
        }
Exemplo n.º 2
0
        public void GestureDetectorgetCPtr()
        {
            tlog.Debug(tag, $"GestureDetectorgetCPtr START");
            GestureDetector ret = new GestureDetector();

            Assert.IsNotNull(ret, "should be not null");
            Assert.IsInstanceOf <GestureDetector>(ret, "should be an instance of testing target class!");

            global::System.Runtime.InteropServices.HandleRef ptr = GestureDetector.getCPtr(ret);

            GestureDetector newOne = null;

            ptr = GestureDetector.getCPtr(newOne);

            ret.Dispose();

            tlog.Debug(tag, $"GestureDetectorgetCPtr END (OK)");
            Assert.Pass("GestureDetectorgetCPtr");
        }
Exemplo n.º 3
0
        public void GestureDetectorgetCPtr()
        {
            tlog.Debug(tag, $"GestureDetectorgetCPtr START");

            var testingTarget = new GestureDetector();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <GestureDetector>(testingTarget, "should be an instance of testing target class!");

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"GestureDetectorgetCPtr END (OK)");
            Assert.Pass("GestureDetectorgetCPtr");
        }