public void DotnetTimer_Test() { var timer = new DotnetTimer(100, false); timer.Elapsed += Timer_Elapsed; timer.Start(); Thread.Sleep(300); timer.Stop(); Assert.Equal(2, _testValue); }
public override void Stop() { Timer.Stop(); base.Stop(); }
public void DotnetTimer_Test() { var timer = new DotnetTimer(100, false); timer.Elapsed += Timer_Elapsed; timer.Start(); Thread.Sleep(300); timer.Stop(); Assert.Equal(2, _testValue); }
public override void Stop() { Timer.Stop(); base.Stop(); }