コード例 #1
0
 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;  
 }
コード例 #2
0
 public void ShouldReturnNeverIfNoTriggerExists() {
     trigger = new MultipleTrigger();
     Assert.AreEqual(DateTime.MaxValue, trigger.NextFireTime);
 }
コード例 #3
0
 public void ShouldNotFailWhenNoTriggersAndProcessingCompletedCalled() {
     trigger = new MultipleTrigger();
     trigger.ProcessingCompleted();
 }
コード例 #4
0
 public void ShouldReturnNoBuildWhenNoTriggers() {
     trigger = new MultipleTrigger();
     Assert.AreEqual(false, trigger.Fire());
 }