public void GLWindowResizedSignalEmit() { tlog.Debug(tag, $"GLWindowResizedSignalEmit 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}"); var testingTarget = new GLWindowResizedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!"); try { using (Size2D size = new Size2D(20, 30)) { testingTarget.Emit(size); } } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"GLWindowResizedSignalEmit END (OK)"); }
public void GLWindowResizedSignalConnect() { tlog.Debug(tag, $"GLWindowResizedSignalConnect START"); var testingTarget = new GLWindowResizedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!"); 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, $"GLWindowResizedSignalConnect END (OK)"); }
public void GLWindowResizedSignalConstructor() { tlog.Debug(tag, $"GLWindowResizedSignalConstructor START"); using (View view = new View()) { var testingTarget = new GLWindowResizedSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"GLWindowResizedSignalConstructor END (OK)"); }
public void GLWindowResizedSignalEmpty() { tlog.Debug(tag, $"GLWindowResizedSignalEmpty START"); var testingTarget = new GLWindowResizedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"GLWindowResizedSignalEmpty END (OK)"); }