Пример #1
0
        public static void IsSameLooking(Slide expSlide, Slide actualSlide, double similarityTolerance = 0.95)
        {
            int hashCode = DateTime.Now.GetHashCode();

            actualSlide.Export(PathUtil.GetTempPath("actualSlide" + hashCode + ".png"), "PNG");
            expSlide.Export(PathUtil.GetTempPath("expSlide" + hashCode + ".png"), "PNG");

            IsSameLooking("expSlide" + hashCode + ".png", "actualSlide" + hashCode + ".png", similarityTolerance);
        }
Пример #2
0
        public static void IsSameLooking(Slide expSlide, Slide actualSlide)
        {
            var hashCode = DateTime.Now.GetHashCode();

            actualSlide.Export(PathUtil.GetTempPath("actualSlide" + hashCode), "PNG");
            expSlide.Export(PathUtil.GetTempPath("expSlide" + hashCode), "PNG");

            IsSameLooking("expSlide" + hashCode, "actualSlide" + hashCode);
        }
Пример #3
0
 public static void IsSameLooking(string expSlideImage, string actualSlideImage, double similarityTolerance = 0.95)
 {
     IsSameLooking(new FileInfo(PathUtil.GetTempPath(expSlideImage)),
                   new FileInfo(PathUtil.GetTempPath(actualSlideImage)),
                   similarityTolerance);
 }
Пример #4
0
 public static void IsSameLooking(string expSlideImage, string actualSlideImage)
 {
     IsSameLooking(new FileInfo(PathUtil.GetTempPath(expSlideImage)),
                   new FileInfo(PathUtil.GetTempPath(actualSlideImage)));
 }