public new IConfiguration SetDefaultMatchSettings(ImageMatchSettings value) => (IConfiguration)base.SetDefaultMatchSettings(value);
private object ModifyValue(Type type, object origValue) { object modifiedValue = origValue; if (type == typeof(string)) { modifiedValue = origValue + "_dummy"; } else if (type == typeof(bool)) { modifiedValue = !(bool)origValue; } else if (type == typeof(bool?)) { modifiedValue = ((bool?)origValue) ?? true; modifiedValue = !(bool)modifiedValue; } else if (type == typeof(BatchInfo)) { modifiedValue = new BatchInfo((origValue as BatchInfo)?.Name + "_dummy"); } else if (type == typeof(ImageMatchSettings)) { modifiedValue = new ImageMatchSettings(); } else if (type == typeof(TimeSpan)) { modifiedValue = ((TimeSpan)origValue).Add(TimeSpan.FromSeconds(1)); } else if (type == typeof(int)) { modifiedValue = ((int)origValue) + 1; } else if (type == typeof(RectangleSize)) { RectangleSize origRectSize = origValue as RectangleSize; if (origRectSize == null) { modifiedValue = new RectangleSize(); } else { modifiedValue = new RectangleSize(origRectSize.Width + 1, origRectSize.Height + 1); } } else if (type == typeof(MatchLevel)) { modifiedValue = MatchLevel.Exact; if (modifiedValue == origValue) { modifiedValue = MatchLevel.Content; } } else if (type == typeof(StitchModes)) { modifiedValue = StitchModes.CSS; if (modifiedValue == origValue) { modifiedValue = StitchModes.Scroll; } } else if (type == typeof(AccessibilityLevel)) { modifiedValue = AccessibilityLevel.AA; if (modifiedValue == origValue) { modifiedValue = AccessibilityLevel.AAA; } } else if (type == typeof(AccessibilitySettings)) { modifiedValue = new AccessibilitySettings(AccessibilityLevel.AA, AccessibilityGuidelinesVersion.WCAG_2_0); } else if (type == typeof(VisualGridOption[])) { var list = new List <VisualGridOption>() { new VisualGridOption("option1", "value1") }; if (origValue != null && list.Count == ((VisualGridOption[])origValue).Length) { list.Add(new VisualGridOption("option2", true)); } modifiedValue = list.ToArray(); } return(modifiedValue); }
protected override EyesScreenshot GetScreenshot(Rectangle?targetRegion, ICheckSettingsInternal checkSettingsInternal, ImageMatchSettings imageMatchSettings) { throw new NotImplementedException(); }