public void ScrollableSignalEmit() { tlog.Debug(tag, $"ScrollableSignalEmit 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 (Vector2 vector = new Vector2(0.3f, 0.5f)) { var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); try { testingTarget.Emit(vector); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollableSignalEmit END (OK)"); }
public void ScrollableSignalConnect() { tlog.Debug(tag, $"ScrollableSignalConnect START"); var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); 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, $"ScrollableSignalConnect END (OK)"); }
public void ScrollableSignalConstructor() { tlog.Debug(tag, $"ScrollableSignalConstructor START"); using (View view = new View()) { var testingTarget = new ScrollableSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollableSignalConstructor END (OK)"); }
public void ScrollableSignalEmpty() { tlog.Debug(tag, $"ScrollableSignalEmpty START"); var testingTarget = new ScrollableSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollableSignalEmpty END (OK)"); }