Пример #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);
        }
Пример #2
0
 public static void EqualsToPattern(IBrowserCamera browserCamera, string viewName)
 {
     visualAssertionsService.CheckViewWithPattern(browserCamera, viewName);
 }
Пример #3
0
 public void AssertView(IBrowserCamera browserCamera, string viewName)
 {
     _visualAssertionsService.CheckViewWithPattern(browserCamera, viewName);
 }