public void TimerIsRunningWithDisposedInstance() { tlog.Debug(tag, $"TimerIsRunningWithDisposedInstance START"); var testingTarget = new MyTimer(100); Assert.IsNotNull(testingTarget, "Can't create success object Timer"); Assert.IsInstanceOf <Timer>(testingTarget, "Should be an instance of Timer type."); testingTarget.Start(); testingTarget.OnDispose(DisposeTypes.Explicit); try { var result = testingTarget.IsRunning(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); tlog.Debug(tag, $"TimerIsRunningWithDisposedInstance END (OK)"); Assert.Pass("Caught Exception: Passed!"); } }