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; }
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; }