public static void Stop()
 {
     if (_server != null)
     {
         _server.StopServer();
     }
 }
Beispiel #2
0
 public static void AssemblyCleanup()
 {
     if (_server != null)
     {
         _server.StopServer();
     }
 }
Beispiel #3
0
 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();
 }
Beispiel #4
0
        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();
        }
Beispiel #5
0
 public void TearDown()
 {
     server.StopServer();
 }
Beispiel #6
0
 public static void ClassCleanup()
 {
     WebServer.StopServer();
 }
Beispiel #7
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     _server.StopServer();
 }
Beispiel #8
0
 public void TeardownWebSite()
 {
     _server.StopServer();
 }
Beispiel #9
0
 public static void AssemblyCleanup()
 {
     server.StopServer();
 }
Beispiel #10
0
 private static void Stop()
 {
     server.StopServer();
     server.Dispose();
 }