Esempio n. 1
0
        public void LowMemorySignalTypeConnect()
        {
            tlog.Debug(tag, $"LowMemorySignalTypeConnect START");

            var testingTarget = new LowMemorySignalType();

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

            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, $"LowMemorySignalTypeConnect END (OK)");
        }
Esempio n. 2
0
        public void LowMemorySignalTypeConstructor()
        {
            tlog.Debug(tag, $"LowMemorySignalTypeConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"LowMemorySignalTypeConstructor END (OK)");
        }
Esempio n. 3
0
        public void LowMemorySignalTypeEmpty()
        {
            tlog.Debug(tag, $"LowMemorySignalTypeEmpty START");

            var testingTarget = new LowMemorySignalType();

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

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

            testingTarget.Dispose();

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