public IEnumerable<Context> FindContextsIn(Assembly assembly) { return EnumerateContextsIn(assembly).Select(CreateContextFrom); }
public IEnumerable<MSpecTestCase> DiscoverTests(string assemblyPath) { AssemblyExplorer assemblyExplorer = new AssemblyExplorer(); Assembly assembly = Assembly.LoadFile(assemblyPath); IEnumerable<Context> contexts = assemblyExplorer.FindContextsIn(assembly); return contexts.SelectMany(context => CreateTestCase(context, assemblyPath)).ToList(); }