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