internal void CreateScreenshotsIfTestFail(TestContext testContext) { if (testContext.CurrentTestOutcome == UnitTestOutcome.Failed) { ScreenshotManager.SaveScreenshots(testContext.TestDeploymentDir); } else { ScreenshotManager.Screenshots.Clear(); } }