public IEnumerable <MSpecTestCase> DiscoverSpecs(string assemblyFilePath) { using (IsolatedAppDomainExecutionScope <TestDiscoverer> scope = new IsolatedAppDomainExecutionScope <TestDiscoverer>(assemblyFilePath)) { TestDiscoverer discoverer = scope.CreateInstance(); return(discoverer.DiscoverTests(assemblyFilePath).ToList()); } }
public IEnumerable<MSpecTestCase> DiscoverSpecs(string assemblyFilePath) { #if !NETSTANDARD using (IsolatedAppDomainExecutionScope<TestDiscoverer> scope = new IsolatedAppDomainExecutionScope<TestDiscoverer>(assemblyFilePath)) { TestDiscoverer discoverer = scope.CreateInstance(); #else TestDiscoverer discoverer = new TestDiscoverer(); #endif return discoverer.DiscoverTests(assemblyFilePath).ToList(); #if !NETSTANDARD } #endif }