public void WithSeleniumReporting_WithCanNotify_ShouldReturnCorrectValue( [Modest] Actor actor, IActor iactor, string screenshotDirectory, string screenshotName, IObserver <string>[] observers, ICanNotify canNotify) { #pragma warning disable CS0618 // Type or member is obsolete var actual = ActorExtensions.WithSeleniumReporting( actor, screenshotDirectory, screenshotName, canNotify, out var actualSeleniumReporter, observers ); #pragma warning restore CS0618 // Type or member is obsolete TestWithSeleniumReporting(actualSeleniumReporter, actual, actor, iactor, screenshotDirectory, screenshotName, observers, new CompositeCanNotify(canNotify, SeleniumReportingConfiguration.DefaultCanNotify), _defaultTakeScreenshotStrategy); }
public void WithSeleniumReporting_WithConfiguration_ShouldReturnCorrectValue( [Modest] Actor actor, IActor iactor, SeleniumReportingConfiguration configuration, IObserver <string>[] observers, ICanNotify canNotify, ITakeScreenshotStrategy takeScreenshotStrategy, ScreenshotFormat format) { var actual = ActorExtensions.WithSeleniumReporting( actor, configuration, out var actualSeleniumReporter ); TestWithSeleniumReporting(actualSeleniumReporter, actual, actor, iactor, configuration.ScreenshotDirectory, configuration.ScreenshotNameOrFormat, observers, canNotify, takeScreenshotStrategy, format); }