public static void Stop() { if (_server != null) { _server.StopServer(); } }
public static void AssemblyCleanup() { if (_server != null) { _server.StopServer(); } }
public void TestMethod1() { var server = new CassiniDevServer(); server.StartServer(Environment.CurrentDirectory); var url = server.NormalizeUrl("test-page.htm"); WebClient client = new WebClient(); var response = client.DownloadString(url); Assert.IsTrue(response.Contains("test page")); server.StopServer(); }
public void TearDown() { server.StopServer(); }
public static void ClassCleanup() { WebServer.StopServer(); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { _server.StopServer(); }
public void TeardownWebSite() { _server.StopServer(); }
public static void AssemblyCleanup() { server.StopServer(); }
private static void Stop() { server.StopServer(); server.Dispose(); }