public void VideoViewSignalEmit() { tlog.Debug(tag, $"VideoViewSignalEmit START"); var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); using (VideoView view = new VideoView()) { var testingTarget = new VideoViewSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!"); try { testingTarget.Emit(view); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"VideoViewSignalEmit END (OK)"); }
public void VideoViewSignalConnect() { tlog.Debug(tag, $"VideoViewSignalConnect START"); var testingTarget = new VideoViewSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!"); 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, $"VideoViewSignalConnect END (OK)"); }
public void VideoViewSignalConstructor() { tlog.Debug(tag, $"VideoViewSignalConstructor START"); using (View view = new View()) { var testingTarget = new VideoViewSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"VideoViewSignalConstructor END (OK)"); }
public void VideoViewSignalEmpty() { tlog.Debug(tag, $"VideoViewSignalEmpty START"); var testingTarget = new VideoViewSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"VideoViewSignalEmpty END (OK)"); }