Ejemplo n.º 1
0
        public void CaptureCaptureSignalEmpty()
        {
            tlog.Debug(tag, $"CaptureCaptureSignalEmpty START");

            using (Capture capture = new Capture())
            {
                var testingTarget = new CaptureSignal(capture.SwigCPtr.Handle, true);
                Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
                Assert.IsInstanceOf <CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"CaptureCaptureSignalEmpty END (OK)");
        }
Ejemplo n.º 2
0
        public void CaptureCaptureSignalEmpty()
        {
            tlog.Debug(tag, $"CaptureCaptureSignalEmpty START");

            using (Capture capture = new Capture())
            {
                var testingTarget = new CaptureSignal(capture.SwigCPtr.Handle, true);
                Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
                Assert.IsInstanceOf <CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");

                var result = testingTarget.Empty();
                Assert.IsTrue(result);

                testingTarget.Dispose();
            }

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