File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Source/Machine.VSTestAdapter/Discovery/BuiltIn Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,13 @@ public IEnumerable<MSpecTestCase> DiscoverTests(string assemblyPath)
2424 Assembly assembly = AssemblyHelper . Load ( assemblyPath ) ;
2525 IEnumerable < Context > contexts = assemblyExplorer . FindContextsIn ( assembly ) ;
2626
27- return contexts . SelectMany ( context => CreateTestCase ( context , assemblyPath ) ) . ToList ( ) ;
28- }
29-
30- private IEnumerable < MSpecTestCase > CreateTestCase ( Context context , string assemblyPath )
31- {
32-
3327 SourceCodeLocationFinder locationFinder = new SourceCodeLocationFinder ( assemblyPath ) ;
3428
29+ return contexts . SelectMany ( context => CreateTestCase ( context , locationFinder ) ) . ToList ( ) ;
30+ }
3531
32+ private IEnumerable < MSpecTestCase > CreateTestCase ( Context context , SourceCodeLocationFinder locationFinder )
33+ {
3634 foreach ( Specification spec in context . Specifications . ToList ( ) )
3735 {
3836 MSpecTestCase testCase = new MSpecTestCase ( ) ;
You can’t perform that action at this time.
0 commit comments