public HttpServerTests() { using (var service = new HttpDiagnosticsService()) { service.Start(); } }
public void HttpServerReturnsValidPage(string page) { using (var service = new HttpDiagnosticsService()) { service.Start(); StatusOfPage(page, service.Port).ShouldBe(HttpStatusCode.OK); } }
public void HttpServerReturnsValidPage(String page) { using (var service = new HttpDiagnosticsService()) { service.Start(); Assert.That(StatusOfPage(page, service.Port), Is.EqualTo(WebExceptionStatus.Success)); } }
public void HtppServiceStarts() { using (var service = new HttpDiagnosticsService()) service.Start(); }