public void Can_serve_multiple_html_pages() { BuiltinWebServer mg = new BuiltinWebServer(new DiskProviderImpl(), webRootDirectory, 59999); using (mg.Start()) { string localHtmlPath1 = Path.Combine(webRootDirectory, "JsUnitTests\\JsUnitTestFixture1.htm"); string httpPath1 = mg.MakeHttpUrl(localHtmlPath1); RequestAndAssertPage(httpPath1); string localHtmlPath2 = Path.Combine(webRootDirectory, "JsUnitTests\\JsUnitTestFixture2.htm"); string httpPath2 = mg.MakeHttpUrl(localHtmlPath2); RequestAndAssertPage(httpPath2); } }
public void SetUp() { server = new BuiltinWebServer(new DiskProviderImpl(), @"C:\source\myproj", 60000); }