public void FulfilledCondition_ANDNOT_NotFulfilledCondition_ShouldBeNotFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.AndNot, new FulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
        }
        public void FulfilledCondition_OR_NotFulfilledCondition_ShouldBeFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.Or, new NotFulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
        }
        public void ConditionWithMultipleRelatedConditionsMustBeNotFulfilled()
        {
            var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition()).WithRelatedCondition(ConditionRelation.And, new NotFulfilledTestCondition());

            condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
        }
 public void FulfilledCondition_ORNOT_NotFulfilledCondition_ShouldBeNotFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.OrNot, new NotFulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
 public void FulfilledCondition_AND_FulfilledCondition_ShouldBeFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
 }
 public void ConditionWithMultipleRelatedConditionsMustBeNotFulfilled()
 {
     var condition = new FulfilledTestCondition().WithRelatedCondition(ConditionRelation.And, new FulfilledTestCondition()).WithRelatedCondition(ConditionRelation.And, new NotFulfilledTestCondition());
     condition.Validate().ShouldBeEquivalentTo(ConditionState.NotFulfilled);
 }