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