コード例 #1
0
        public void FulfilledCondition_ANDNOT_NotFulfilledCondition_ShouldBeNotFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.AndNot, new FulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
        }
コード例 #2
0
        public void FulfilledCondition_OR_NotFulfilledCondition_ShouldBeFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.Or, new NotFulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
        }
コード例 #3
0
        public void ConditionWithMultipleRelatedConditionsMustBeNotFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition()).WithRelatedCondition(ConditionRelation.And, new NotFulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
        }
コード例 #4
0
 public void FulfilledCondition_ORNOT_NotFulfilledCondition_ShouldBeNotFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.OrNot, new NotFulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
コード例 #5
0
 public void FulfilledCondition_AND_FulfilledCondition_ShouldBeFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
コード例 #6
0
 public void ConditionWithMultipleRelatedConditionsMustBeNotFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition()).WithRelatedCondition(ConditionRelation.And, new NotFulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
 }