Beispiel #1
0
 private static bool IsExempt(MemberInfo member, TestExemptionCategory category) =>
 member.GetCustomAttributes(typeof(TestExemptionAttribute), false)
 .Cast <TestExemptionAttribute>()
 .Any(e => e.Category == category);
 internal TestExemptionAttribute(TestExemptionCategory category, string?message = null)
 {
     Category = category;
 }
Beispiel #3
0
 internal static void AssertNoFailures <T>(IEnumerable <T> failures, Func <T, string> failureFormatter, TestExemptionCategory category)
     where T : MemberInfo =>
 AssertNoFailures(failures.Where(member => !IsExempt(member, category)), failureFormatter);
 internal TestExemptionAttribute(TestExemptionCategory category)
 {
     Category = category;
 }