Example #1
0
 private void AssertNotLive(HttpServer2 server)
 {
     Assert.True("Server should not be live", !server.IsAlive());
     AssertToStringContains(server, HttpServer2.StateDescriptionNotLive);
 }
Example #2
0
 /// <summary>
 /// Check that a server is alive by probing the
 /// <see cref="HttpServer2.IsAlive()"/>
 /// method
 /// and the text of its toString() description
 /// </summary>
 /// <param name="server">server</param>
 private void AssertAlive(HttpServer2 server)
 {
     Assert.True("Server is not alive", server.IsAlive());
     AssertToStringContains(server, HttpServer2.StateDescriptionAlive);
 }