Ejemplo n.º 1
0
 public void RunOnEntity(T entity, IIteratorMutator <T> mutator, Action <T> action, ICondition <T> actionCondition, ICondition <T> iterationCondition)
 {
     while (iterationCondition.Applies(entity))
     {
         if (actionCondition.Applies(entity))
         {
             action(entity);
         }
         entity = mutator.Mutate(entity);
     }
 }
 public void When_ActualNumber_IsGreaterThanExpected_ConditionReturnsTrue()
 {
     Assert.IsTrue(Subject.Applies(3));
 }
 public void When_ActualNumber_IsOdd_ConditionReturnsTrue()
 {
     Assert.IsTrue(Subject.Applies(3));
 }