private static ConfigurationDiagnosticsOptions SetupOptions() { var options = new ConfigurationDiagnosticsOptions(); options.BuildConfigurationKeyMatcher(builder => builder.AddContainsMatcher("ConfigThree")); options.Obfuscator = new FixedAsteriskObfuscator(); return(options); }
public void BuildConfigurationKeyMatcherAssignsToConfigurationKeyMatcher() { var options = new ConfigurationDiagnosticsOptions(); options.BuildConfigurationKeyMatcher(builder => { builder.Add(new ContainsMatcher("abc")); }); options.ConfigurationKeyMatcher.ShouldNotBeNull(); options.ConfigurationKeyMatcher.ShouldNotBeOfType <NullMatcher>(); }