Exemple #1
0
 public void TearDown()
 {
     if (_iisExpress != null)
     {
         _iisExpress.Dispose();
     }
 }
        public void TearDown()
        {
            Driver.Quit();

            if (_iisExpress != null)
            {
                _iisExpress.Dispose();
            }
        }
Exemple #3
0
 public void TearDown()
 {
     // ReSharper disable once EmptyGeneralCatchClause
     try
     {
         iisExpress.Dispose();
     }
     catch {}
 }
Exemple #4
0
        public static void Cleanup()
        {
            if (_iisExpress != null)
            {
                _iisExpress.Dispose();
            }

            var iexps = Process.GetProcessesByName("IISExpress");

            foreach (var iexp in iexps)
            {
                iexp.Kill();
            }

            if (_serviceManager != null)
            {
                _serviceManager.Stop();
                _serviceManager = null;
            }
        }