Exemplo n.º 1
0
        public void WatchTimeSignalEmit()
        {
            tlog.Debug(tag, $"WatchTimeSignalEmit 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 WatchTimeSignal();
                Assert.IsNotNull(testingTarget, "should be not null");
                Assert.IsInstanceOf <WatchTimeSignal>(testingTarget, "should be an instance of testing target class!");

                Application application = new Application();
                WatchTime   watchTime   = new WatchTime();
                testingTarget.Emit(application, watchTime);

                application.Dispose();
                watchTime.Dispose();
                testingTarget.Dispose();
                tlog.Debug(tag, $"WatchTimeSignalEmit END (OK)");
            }
            else
            {
                tlog.Debug(tag, $"WatchTimeSignalEmit END (OK)");
                Assert.Pass("Not Supported profile");
            }
        }