public override void before_each() { base.before_each(); executedTests = new Dictionary <string, IEnumerable <string> >(); binaryTestExecutor .When(exc => exc.ExecuteSelected( Arg.Any <string>(), Arg.Any <IEnumerable <string> >(), progressRecorder, outputLogger, Arg.Any <ICrossDomainLogger>())) .Do(callInfo => { var source = callInfo.Arg <string>(); var fullNames = callInfo.Arg <IEnumerable <string> >(); executedTests[source] = fullNames; }); executor = new MultiSourceTestExecutor(testCases, binaryTestExecutor, progressRecorderFactory, settingsRepository, loggerFactory); executor.RunTests(frameworkHandle, autoSubstitute.Resolve <IRunContext>()); }
public override void before_each() { base.before_each(); executedSources = new List <string>(); binaryTestExecutor .When(exc => exc.ExecuteAll( Arg.Any <string>(), progressRecorder, outputLogger, Arg.Any <ICrossDomainLogger>())) .Do(callInfo => { var source = callInfo.Arg <string>(); executedSources.Add(source); }); executor = new MultiSourceTestExecutor(sources, binaryTestExecutor, progressRecorderFactory, settingsRepository, loggerFactory); executor.RunTests(frameworkHandle, autoSubstitute.Resolve <IRunContext>()); }