public void PropertyNotifySignalEmit()
        {
            tlog.Debug(tag, $"PropertyNotifySignalEmit START");

            var testingTarget = new PropertyNotifySignal();

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

            View view = new View()
            {
                Size            = new Size(200, 200),
                BackgroundColor = Color.Red
            };

            Window.Instance.Add(view);

            var dummy = view.AddPropertyNotification("PositionX", PropertyCondition.GreaterThan(100.0f));

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

            testingTarget.Emit(dummy);

            testingTarget.Dispose();
            dummy.Dispose();
            view.Dispose();
            tlog.Debug(tag, $"PropertyNotifySignalEmit END (OK)");
        }
        public void PropertyNotifySignalConstructor()
        {
            tlog.Debug(tag, $"PropertyNotifySignalConstructor START");

            var testingTarget = new PropertyNotifySignal();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyNotifySignalConstructor END (OK)");
        }
        public void PropertyNotifySignalGetConnectionCount()
        {
            tlog.Debug(tag, $"PropertyNotifySignalGetConnectionCount START");

            var testingTarget = new PropertyNotifySignal();

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

            Assert.AreEqual(0, testingTarget.GetConnectionCount(), "Should be zero!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyNotifySignalGetConnectionCount END (OK)");
        }
        public void PropertyNotifySignalDisconnect()
        {
            tlog.Debug(tag, $"PropertyNotifySignalDisconnect START");

            var testingTarget = new PropertyNotifySignal();

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

            dummyCallback callback = OnDummyCallback;

            testingTarget.Connect(callback);
            testingTarget.Disconnect(callback);

            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyNotifySignalDisconnect END (OK)");
        }
Example #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyNotifySignal obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }