Пример #1
0
 public void TestInitialize()
 {
     Contexts.Clear();
     ClientTests.Clear();
     Server = new ServerFixture();
     BrowserFixtures.Clear();
     BrowserFixtures.Add(new BrowserFixture());
     ScreenshotCapture = new ScreenshotCapture();
 }
Пример #2
0
        public void TestCleanup()
        {
            ScreenshotCapture = null;
            ClientTests.Clear();
            Contexts.Clear();

            foreach (var browserFixture in BrowserFixtures)
            {
                browserFixture.Dispose();
            }

            BrowserFixtures.Clear();

            if (Server != null)
            {
                Server.Dispose();
                Server = null;
            }
        }