Пример #1
0
        public void HoverSignalEmit()
        {
            tlog.Debug(tag, $"HoverSignalEmit START");
            var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
            var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;

            tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");

            var testingTarget = new HoverSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");

            try
            {
                using (View view = new View())
                {
                    using (Hover hover = new Hover())
                    {
                        testingTarget.Emit(view, hover);
                    }
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"HoverSignalEmit END (OK)");
        }
Пример #2
0
        public void HoverSignalConnect()
        {
            tlog.Debug(tag, $"HoverSignalConnect START");

            var testingTarget = new HoverSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");

            try
            {
                dummyCallback callback = OnDummyCallback;
                testingTarget.Connect(callback);
                testingTarget.Disconnect(callback);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"HoverSignalConnect END (OK)");
        }
Пример #3
0
        internal HoverSignal HoveredSignal()
        {
            HoverSignal ret = new HoverSignal(Interop.ActorSignal.ActorHoveredSignal(SwigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #4
0
        public void HoverSignalConstructor()
        {
            tlog.Debug(tag, $"HoverSignalConstructor START");

            using (View view = new View())
            {
                var testingTarget = new HoverSignal(view.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"HoverSignalConstructor END (OK)");
        }
Пример #5
0
        public void HoverSignalGetConnectionCount()
        {
            tlog.Debug(tag, $"HoverSignalGetConnectionCount START");

            var testingTarget = new HoverSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");

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

            testingTarget.Dispose();

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