private ImageComparer GetImageComparer <TPixel>(TestImageProvider <TPixel> provider)
            where TPixel : struct, IPixel <TPixel>
        {
            string file = provider.SourceFileOrDescription;

            if (!CustomToleranceValues.TryGetValue(file, out float tolerance))
            {
                bool baseline = file.ToLower().Contains("baseline");
                tolerance = baseline ? BaselineTolerance : ProgressiveTolerance;
            }

            return(ImageComparer.Tolerant(tolerance));
        }
        private static ImageComparer GetImageComparer <TPixel>(TestImageProvider <TPixel> provider)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            string file = provider.SourceFileOrDescription;

            if (!CustomToleranceValues.TryGetValue(file, out float tolerance))
            {
                bool baseline = file.IndexOf("baseline", StringComparison.OrdinalIgnoreCase) >= 0;
                tolerance = baseline ? BaselineTolerance : ProgressiveTolerance;
            }

            return(ImageComparer.Tolerant(tolerance));
        }