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); }
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); }
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); }
public void Should_Not_Skip_If_All_TestCondition_Attributes_Are_Met() { TestConditionLogic(AttributeReflectionAttributeInfo.SingleConditionMet(), AttributeReflectionAttributeInfo.SingleConditionMet(), AttributeReflectionAttributeInfo.SingleConditionMet(), null); }