Inheritance: ICondition
コード例 #1
0
 public void ConditionWithTrueExpression_ShouldBeFulfilled()
 {
     var condition = new Condition().WithExpression(() => true);
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
コード例 #2
0
 public void ConditionWithNotfulfilledExpression_ShouldBeNotFulfilled()
 {
     var condition = new Condition().WithExpression(() => ConditionState.NotFulfilled);
     condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
 }