private static void IncludeTestFactories([NotNull] IReportBuilder reportBuilder, [NotNull] IEnumerable <Assembly> assemblies) { const bool includeObsolete = true; const bool includeInternallyUsed = true; foreach (Assembly assembly in assemblies) { foreach (Type testFactoryType in TestDescriptorUtils.GetTestFactoryClasses( assembly, includeObsolete, includeInternallyUsed)) { reportBuilder.IncludeTestFactory(testFactoryType); } } }