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