public Bot(IClicker clicker, IScreenCapture screenCapture, IList <TeraPixel> rod) { this.m_Clicker = clicker; this.m_ScreenCapture = screenCapture; this.m_rod = rod; this.m_searchWithDelta = new SearchWithDeltaEColorCompare(this.m_rod); }
public async Task FindHookInScreenshotSpecialBiomes(string fileName) { var filePath = $"./TestData/{fileName}"; var snapshot = new Bitmap(filePath); var searchAlgo = new SearchWithDeltaEColorCompare(RodHooks.SitingDuckHook); var result = await WithStopWatch(() => searchAlgo.Search(snapshot)); if (result.IsFound) { ShowResult(result.Pixel, filePath, fileName); } else { snapshot.Save(Path.Combine("./TestData/Failed/", fileName)); } Assert.True(result.IsFound); }