private static bool isxUnitTestClass(this Type type) { if (type.IsAbstract) { return(false); } if (type.IsStatic()) { return(false); } // All types could potentially host xUnit's facts, but we require there's at least one method marked xUnit.Fact in there return(type.GetMethods().Any(AttributeExtensions.HasAttributeDelegate("Xunit.FactAttribute", "Xunit.Sdk.XunitTest"))); }