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
        internal TextEditorSignal MaxLengthReachedSignal()
        {
            TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.MaxLengthReachedSignal(swigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #3
0
        internal TextEditorSignal InputFilteredSignal()
        {
            TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.InputFilteredSignal(SwigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
        internal TextEditorSignal CursorPositionChangedSignal()
        {
            TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.CursorPositionChangedSignal(SwigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
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 #6
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)");
        }