Пример #1
0
 public void CheckDHSIconImage()
 {
     // get the screenshot from the repository
     Bitmap MyScreenshot  =  Imaging.Load(@"C:\DHSIcon.jpg");
     // create FindOptions with similarity set to 95%
     Imaging.FindOptions MyFindOptions  =  new Imaging.FindOptions(0.95);
     // compare the captured screenshot with the actual list item
     Validate.CompareImage(repo.Desktop.DellHelpSupportIconInfo,  MyScreenshot,  MyFindOptions);
 }