Inheritance: ICondition
Exemplo n.º 1
0
 public void ConditionWithTrueExpression_ShouldBeFulfilled()
 {
     var condition = new Condition().WithExpression(() => true);
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
Exemplo n.º 2
0
 public void ConditionWithNotfulfilledExpression_ShouldBeNotFulfilled()
 {
     var condition = new Condition().WithExpression(() => ConditionState.NotFulfilled);
     condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
 }