Example #1
0
        public void TextEditorSignalConnect()
        {
            tlog.Debug(tag, $"TextEditorSignalConnect START");

            var testingTarget = new TextEditorSignal();

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

            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, $"TextEditorSignalConnect END (OK)");
        }
Example #2
0
        public void TextEditorSignalConstructor()
        {
            tlog.Debug(tag, $"TextEditorSignalConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"TextEditorSignalConstructor END (OK)");
        }
Example #3
0
        public void TextEditorSignalEmpty()
        {
            tlog.Debug(tag, $"TextEditorSignalEmpty START");

            var testingTarget = new TextEditorSignal();

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

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

            testingTarget.Dispose();

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