public void WatchBoolSignalEmit() { tlog.Debug(tag, $"WatchBoolSignalEmit START"); if (IsWearable()) { 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 WatchBoolSignal(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <WatchBoolSignal>(testingTarget, "should be an instance of testing target class!"); var dummy = new Application(); testingTarget.Emit(dummy, true); dummy.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"WatchBoolSignalEmit END (OK)"); } else { tlog.Debug(tag, $"WatchBoolSignalEmit END (OK)"); Assert.Pass("Not Supported profile"); } }
public void WatchBoolSignalConstructor() { tlog.Debug(tag, $"WatchBoolSignalConstructor START"); using (ImageView imageView = new ImageView()) { var testingTarget = new WatchBoolSignal(imageView.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <WatchBoolSignal>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); } tlog.Debug(tag, $"WatchBoolSignalConstructor END (OK)"); }
public void WatchBoolSignalConstructor() { tlog.Debug(tag, $"WatchBoolSignalConstructor START"); if (IsWearable()) { var testingTarget = new WatchBoolSignal(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <WatchBoolSignal>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"WatchBoolSignalConstructor END (OK)"); } else { tlog.Debug(tag, $"WatchBoolSignalConstructor END (OK)"); Assert.Pass("Not Supported profile"); } }
public void WatchBoolSignalDisconnection() { tlog.Debug(tag, $"WatchBoolSignalDisconnection START"); if (IsWearable()) { var testingTarget = new WatchBoolSignal(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <WatchBoolSignal>(testingTarget, "should be an instance of testing target class!"); dummyCallback callback = OnDummyCallback; testingTarget.Connect(callback); testingTarget.Disconnect(callback); testingTarget.Dispose(); tlog.Debug(tag, $"WatchBoolSignalDisconnection END (OK)"); } else { tlog.Debug(tag, $"WatchBoolSignalDisconnection END (OK)"); Assert.Pass("Not Supported profile"); } }
public void WatchBoolSignalGetConnectionCount() { tlog.Debug(tag, $"WatchBoolSignalGetConnectionCount START"); if (IsWearable()) { var testingTarget = new WatchBoolSignal(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <WatchBoolSignal>(testingTarget, "should be an instance of testing target class!"); var result = testingTarget.GetConnectionCount(); Assert.IsTrue(result == 0, "result should be 0"); testingTarget.Dispose(); tlog.Debug(tag, $"WatchBoolSignalGetConnectionCount END (OK)"); } else { tlog.Debug(tag, $"WatchBoolSignalGetConnectionCount END (OK)"); Assert.Pass("Not Supported profile"); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WatchBoolSignal obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }