示例#1
0
        public void FocusChangedSignalConnect()
        {
            tlog.Debug(tag, $"FocusChangedSignalConnect START");

            var testingTarget = new FocusChangedSignal();

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

            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, $"FocusChangedSignalConnect END (OK)");
        }