Beispiel #1
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());
        }