public ScreenshotTestEngine(IFilePathProvider oldFilePathProvider, IFilePathProvider newFilePathProvider, IScreenshotProvider screenshotProvider, IBitmapComparer bitmapComparer) { _bitmapComparer = bitmapComparer; _screenshotProvider = screenshotProvider; _newFilePathProvider = newFilePathProvider; _oldFilePathProvider = oldFilePathProvider; }
internal App(IConsoleLog log, GitRepoProvider git, IScreenshotProvider screenshots, Func <int, IRepeater> repeaterFactory) { _log = log; _git = git; _repeaterFactory = repeaterFactory; _stopwatch = new Stopwatch(); _screenshots = screenshots; }
public static void CaptureScreenshot() { if (instance == null) { #if UNITY_ANDROID GameObject temp = new GameObject("AndroidScreenshotProvider"); temp.AddComponent <AndroidScreenshotProvider>(); instance = temp.GetComponent <AndroidScreenshotProvider>(); #endif } if (instance != null) { instance.CaptureScreenshot(); } else { Debug.Log("No ScreenshotProvider could be instanced."); } }
public App(IConsoleLog log, GitRepoProvider git, IScreenshotProvider screenshots) : this(log, git, screenshots, intervalSeconds => new Repeater(intervalSeconds)) { }
public ScreenshotHooks(ScenarioContext scenarioContext, IScreenshotProvider screenshotProvider) { this.scenarioContext = scenarioContext; this.screenshotProvider = screenshotProvider; }
public ScreenshotTestEngine(IFilePathProvider oldFilePathProvider, IFilePathProvider newFilePathProvider, IScreenshotProvider screenshotProvider) : this(oldFilePathProvider, newFilePathProvider, screenshotProvider, new BitmapComparer()) { }
public ScreenshotRunner(IScreenshotProvider screenshotProvider, IFilePathProvider filePathProvider) { _filePathProvider = filePathProvider; _screenshotProvider = screenshotProvider; }