public void Setup() { subTrigger1Mock = new DynamicMock(typeof(ITrigger)); subTrigger2Mock = new DynamicMock(typeof(ITrigger)); subTrigger1 = (ITrigger)subTrigger1Mock.MockInstance; subTrigger2 = (ITrigger)subTrigger2Mock.MockInstance; trigger = new MultipleTrigger(); trigger.FirstTrigger = subTrigger1; trigger.SecondTrigger = subTrigger2; }
public void ShouldReturnNeverIfNoTriggerExists() { trigger = new MultipleTrigger(); Assert.AreEqual(DateTime.MaxValue, trigger.NextFireTime); }
public void ShouldNotFailWhenNoTriggersAndProcessingCompletedCalled() { trigger = new MultipleTrigger(); trigger.ProcessingCompleted(); }
public void ShouldReturnNoBuildWhenNoTriggers() { trigger = new MultipleTrigger(); Assert.AreEqual(false, trigger.Fire()); }