public void TestImageMatchSettingsSerialization_Global(bool useDom, bool enablePatterns, bool ignoreDisplacements)
        {
            ICheckSettings settings      = Target.Window().Fully().UseDom(useDom).EnablePatterns(enablePatterns);
            TestEyes       eyes          = new TestEyes();
            IConfiguration configuration = eyes.GetConfiguration();

            configuration.SetDefaultMatchSettings(new ImageMatchSettings(MatchLevel.Exact, new ExactMatchSettings()
            {
                MatchThreshold = 0.5
            }));
            configuration.SetIgnoreDisplacements(ignoreDisplacements);
            eyes.SetConfiguration(configuration);
            ImageMatchSettings imageMatchSettings = MatchWindowTask.CreateImageMatchSettings(settings as ICheckSettingsInternal, eyes);

            string json         = JsonConvert.SerializeObject(imageMatchSettings, Formatting.Indented);
            string expectedJson = CommonUtils.ReadResourceFile($"Test.Eyes.Sdk.Core.DotNet.Resources.SessionStartInfo_FluentApiSerialization_NonDefaultIMS_{useDom}_{enablePatterns}_{ignoreDisplacements}.json");

            Assert.AreEqual(expectedJson, json);
        }
        public void TestConfigurationSerialization(bool useDom, bool enablePatterns, bool ignoreDisplacements)
        {
            ICheckSettings settings      = Target.Window().Fully();
            TestEyes       eyes          = new TestEyes();
            IConfiguration configuration = eyes.GetConfiguration();

            configuration.SetUseDom(useDom);
            configuration.SetEnablePatterns(enablePatterns);
            configuration.SetIgnoreDisplacements(ignoreDisplacements);
            eyes.SetConfiguration(configuration);

            EyesScreenshot     screenshot         = new TestEyesScreenshot();
            ImageMatchSettings imageMatchSettings = MatchWindowTask.CreateImageMatchSettings((ICheckSettingsInternal)settings, eyes, screenshot);

            string json         = JsonConvert.SerializeObject(imageMatchSettings, Formatting.Indented);
            string expectedJson = CommonUtils.ReadResourceFile($"Test.Eyes.Sdk.Core.DotNet.Resources.SessionStartInfo_FluentApiSerialization_{useDom}_{enablePatterns}_{ignoreDisplacements}.json");

            Assert.AreEqual(expectedJson, json);
        }