public void Stop() { var m = new RecurringHelper(100); var success = m.Stop(); Assert.IsTrue(success); }
public void ChangeTimingWithoutStart() { using (var tm = new RecurringHelper(100)) { tm.ChangeTiming(TimeSpan.FromSeconds(100)); } }
public void TestDisposeTimer() { var m = new RecurringHelper(100); m.Start(); m.TestDispose(); }
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 RunThrows() { var m = new RecurringHelper(100) { Throw = true, }; m.Run(new object(), null); }
public void RunStateNull() { var m = new RecurringHelper(100); m.Run(null, null); }
public void Run() { var m = new RecurringHelper(100); m.Run(); }
public void Dispose() { using (var m = new RecurringHelper(100)) { } }
public void ConstructorPeriodNegative() { var rh = new RecurringHelper(-50); }
public void ChangeTiming() { using (var tm = new RecurringHelper(100)) { tm.Start(); tm.Change(TimeSpan.FromSeconds(100)); } }
public void RunStateNull() { var m = new RecurringHelper(100); m.Run(null); }
public void StartStop() { var m = new RecurringHelper(100); var success = m.Start(); Assert.IsTrue(success); success = m.Stop(); Assert.IsTrue(success); }
public void ChangeTimingZero() { using (var tm = new RecurringHelper(100)) { tm.Change(TimeSpan.Zero); } }