//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void strictAllowsStuffOutsideOurNamespace() public virtual void StrictAllowsStuffOutsideOurNamespace() { IndividualSettingsValidator iv = new IndividualSettingsValidator(singletonList(strict_config_validation), true); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.Map<String,String> rawConfig = stringMap(strict_config_validation.name(), TRUE, "external_plugin.foo", "bar"); IDictionary <string, string> rawConfig = stringMap(strict_config_validation.name(), TRUE, "external_plugin.foo", "bar"); Config config = MockConfig(rawConfig); iv.Validate(config, _log); verifyNoMoreInteractions(_log); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void strictErrorsOnUnknownSettingsInOurNamespace() public virtual void StrictErrorsOnUnknownSettingsInOurNamespace() { IndividualSettingsValidator iv = new IndividualSettingsValidator(singletonList(strict_config_validation), true); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.Map<String,String> rawConfig = stringMap(strict_config_validation.name(), TRUE, "dbms.jibber.jabber", "bla", "external_plugin.foo", "bar"); IDictionary <string, string> rawConfig = stringMap(strict_config_validation.name(), TRUE, "dbms.jibber.jabber", "bla", "external_plugin.foo", "bar"); Config config = MockConfig(rawConfig); Expected.expect(typeof(InvalidSettingException)); Expected.expectMessage(string.Format("Unknown config option 'dbms.jibber.jabber'. To resolve either remove" + " it from your configuration or set '{0}' to false.", strict_config_validation.name())); iv.Validate(config, _log); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void nonStrictRetainsSettings() public virtual void NonStrictRetainsSettings() { IndividualSettingsValidator iv = new IndividualSettingsValidator(singletonList(strict_config_validation), true); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.Map<String,String> rawConfig = stringMap(strict_config_validation.name(), FALSE, "dbms.jibber.jabber", "bla", "external_plugin.foo", "bar"); IDictionary <string, string> rawConfig = stringMap(strict_config_validation.name(), FALSE, "dbms.jibber.jabber", "bla", "external_plugin.foo", "bar"); Config config = MockConfig(rawConfig); iv.Validate(config, _log); verify(_log).warn("Unknown config option: %s", "dbms.jibber.jabber"); verifyNoMoreInteractions(_log); }