예제 #1
0
        public void ITestCondition_Attribute_On_Class_Takes_Precedence_Over_Assembly()
        {
            var skipReason = "Precedence";

            TestConditionLogic(Array.Empty <AttributeReflectionAttributeInfo>(), new List <AttributeReflectionAttributeInfo> {
                new AttributeReflectionAttributeInfo(skipReason), new AttributeReflectionAttributeInfo("Other class skip")
            }, AttributeReflectionAttributeInfo.Single("Assembly skip"), skipReason);
        }
예제 #2
0
        public void ITestCondition_Attribute_On_Method_Takes_Precedence()
        {
            var skipReason = "Precedence";

            TestConditionLogic(new List <AttributeReflectionAttributeInfo> {
                new AttributeReflectionAttributeInfo(skipReason), new AttributeReflectionAttributeInfo("Other method skip")
            }, AttributeReflectionAttributeInfo.Single("Class skip"), AttributeReflectionAttributeInfo.Single("Assembly skip"), skipReason);
        }
예제 #3
0
        public void Should_Skip_If_TestCondition_Attribute_From_Method_Is_Not_Met()
        {
            var skipReason = "Method skip";

            TestConditionLogic(AttributeReflectionAttributeInfo.Single(skipReason), Array.Empty <AttributeReflectionAttributeInfo>(), Array.Empty <AttributeReflectionAttributeInfo>(), skipReason);
        }
예제 #4
0
 public void Should_Not_Skip_If_All_TestCondition_Attributes_Are_Met()
 {
     TestConditionLogic(AttributeReflectionAttributeInfo.SingleConditionMet(), AttributeReflectionAttributeInfo.SingleConditionMet(), AttributeReflectionAttributeInfo.SingleConditionMet(), null);
 }