예제 #1
0
파일: TSCapture.cs 프로젝트: wonrst/TizenFX
        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)");
        }
예제 #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)");
        }