示例#1
0
        public void Should_throw_exception_when_test_runner_is_not_found()
        {
            var diskProvider = new TestDiskProvider();

            diskProvider.FoundFile = null;
            var finder = new FixtureFinder(webserver, diskProvider);

            finder.GetTestRunnerPath();
        }
示例#2
0
        public void Should_turn_path_into_relative_http_path()
        {
            var diskProvider = new TestDiskProvider();

            diskProvider.FoundFile = "c:\\src\\myproj\\subdir1\\testRunner.html";

            webserver.Stub(o => o.MakeHttpUrl(diskProvider.FoundFile))
            .Return("http://localhost:8080/subdir1/testRunner.html");

            var finder = new FixtureFinder(webserver, diskProvider);

            Assert.AreEqual("http://localhost:8080/subdir1/testRunner.html",
                            finder.GetTestRunnerPath());
        }