public void TestInitialize() { Contexts.Clear(); ClientTests.Clear(); Server = new ServerFixture(); BrowserFixtures.Clear(); BrowserFixtures.Add(new BrowserFixture()); ScreenshotCapture = new ScreenshotCapture(); }
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; } }