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

            var testingTarget = new MyCapture();

            Assert.IsNotNull(testingTarget, "Can't create success object MyCapture");
            Assert.IsInstanceOf <MyCapture>(testingTarget, "Should be an instance of MyCapture type.");

            testingTarget.Finished += OnFinishedEvent;
            testingTarget.Finished -= OnFinishedEvent;

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

            var testingTarget = new MyCapture();

            Assert.IsNotNull(testingTarget, "Can't create success object MyCapture");
            Assert.IsInstanceOf <MyCapture>(testingTarget, "Should be an instance of MyCapture type.");

            var result = testingTarget.GetNativeImageSource();

            Assert.IsNotNull(result, "Can't create success object NativeImageSource ");
            Assert.IsInstanceOf <NativeImageSource>(result, "Should be an instance of NativeImageSource  type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"CaptureGetNativeImageSource END (OK)");
        }
Ejemplo n.º 3
0
 private void btnStop_Click(object sender, RoutedEventArgs e)
 {
     MyCapture.Dispose();
     MyCapture = null;
 }