Example #1
0
        public void CheckViewWithPattern(IBrowserCamera browserCamera, string viewName)
        {
            var screenshotIdentity = new ScreenshotIdentity(ProjectName, BrowserName, ScreenshotCategory, viewName);

            if (takenScreenshots.Contains(screenshotIdentity))
            {
                throw new DuplicatedScreenshotInSession(screenshotIdentity);
            }
            var screenshot = browserCamera.TakeScreenshot();

            takenScreenshots.Add(screenshotIdentity);
            CheckScreenshotWithPattern(screenshot, screenshotIdentity);
        }
Example #2
0
 public static void EqualsToPattern(IBrowserCamera browserCamera, string viewName)
 {
     visualAssertionsService.CheckViewWithPattern(browserCamera, viewName);
 }
 public void AssertView(IBrowserCamera browserCamera, string viewName)
 {
     _visualAssertionsService.CheckViewWithPattern(browserCamera, viewName);
 }