public void Should_check_the_runner_exe_for_each_framework() { _configuration .Stub(x => x.MSpecTestRunner("framework 1")) .Return("c:\\runner 1.exe"); _configuration .Stub(x => x.MSpecTestRunner("framework 2")) .Return("c:\\runner 2.exe"); var document1 = new ProjectDocument(ProjectType.CSharp); document1.SetFramework("framework 1"); var info1 = new TestRunInfo(new Project("key 1", document1), "assembly 1"); var document2 = new ProjectDocument(ProjectType.CSharp); document2.SetFramework("framework 2"); var info2 = new TestRunInfo(new Project("key 2", document2), "assembly 2"); var testRunInfos = new[] { info1, info2 }; _runner.RunTests(testRunInfos, null, null); _fileSystem.AssertWasCalled(x => x.FileExists("c:\\runner 1.exe")); _fileSystem.AssertWasCalled(x => x.FileExists("c:\\runner 2.exe")); }