public void HasValueWithUnknownKey() { var key = new ConfigurationKey <string>("a"); var configuration = new ConstantConfiguration(new Dictionary <ConfigurationKeyBase, object>()); Assert.IsFalse(configuration.HasValueFor(key)); }
public void HasValueWithKnownKey() { var key = new ConfigurationKey <string>("a"); var configuration = new ConstantConfiguration( new Dictionary <ConfigurationKeyBase, object> { [key] = 10 }); Assert.IsTrue(configuration.HasValueFor(key)); }
public void HasValueWithNullKey() { var configuration = new ConstantConfiguration(new Dictionary <ConfigurationKeyBase, object>()); Assert.IsFalse(configuration.HasValueFor(null)); }