public void Should_Not_Affect_When_Time_Is_Not_Between() { ITrigger t = new TimedTrigger(DateTime.Now.AddHours(1).TimeOfDay, DateTime.Now.AddHours(2).TimeOfDay); var result = t.WillAffect(); Assert.False(result); }
public void WillAffect_Should_Return_False_If_An_Invalid_TimedOperation_Has_Been_Used() { ITrigger t = new TimedTrigger(DateTime.Now.AddHours(1).TimeOfDay, operation: 0); var result = t.WillAffect(); Assert.False(result); }
public void Should_Not_Affect_When_Time_Is_After_With_Before_Operation() { ITrigger t = new TimedTrigger(DateTime.Now.AddHours(-1).TimeOfDay, TimedOperation.Before); var result = t.WillAffect(); Assert.False(result); }