public void Stop() { var m = new RecurringHelper(100); var success = m.Stop(); Assert.IsTrue(success); }
public void TestDisposeTimer() { var m = new RecurringHelper(100); m.Start(); m.TestDispose(); }
public void ChangeTimingWithoutStart() { using (var tm = new RecurringHelper(100)) { tm.ChangeTiming(TimeSpan.FromSeconds(100)); } }
public void ChangeTimingZero() { using (var tm = new RecurringHelper(100)) { Assert.That(() => tm.ChangeTiming(TimeSpan.Zero), Throws.TypeOf <ArgumentException>()); } }
public void RunThrows() { var m = new RecurringHelper(100) { Throw = true, }; m.Run(new object()); }
public void RunStateNull() { var m = new RecurringHelper(100); m.Run(null); }
public void Run() { var m = new RecurringHelper(100); m.Run(); }
public void Dispose() { using (var m = new RecurringHelper(100)) { } }