public void Shoud_Get_Right_Captchat_When_Give_First_Image() { var imageToTest = _testImagesList.First(); var engine = new EmguEngine(); Assert.AreEqual($"{imageToTest.FirstDigit}{imageToTest.SecondDigit}".ToCharArray(),engine.RecognizeCaptcha(imageToTest.Image)); }
public void Shoud_Get_Right_Captchat_When_Give_All_Images_Of_Tests_Set() { _testImagesList.ToList().ForEach(i => { var engine = new EmguEngine(); Assert.AreEqual($"{i.FirstDigit}{i.SecondDigit}".ToCharArray(), engine.RecognizeCaptcha(i.Image)); }); }