//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldBeInvalidIfPrefixDoesNotMatch() public virtual void ShouldBeInvalidIfPrefixDoesNotMatch() { // given BaseSetting <string> setting = Settings.prefixSetting("bar", Settings.STRING, ""); IDictionary <string, string> rawConfig = new Dictionary <string, string>(); rawConfig["foo.us_east_1c"] = "abcdef"; // when IDictionary <string, string> validConfig = setting.Validate(rawConfig, s => { }); // then assertEquals(0, validConfig.Count); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldValidatePrefixBasedKeys() public virtual void ShouldValidatePrefixBasedKeys() { // given BaseSetting <string> setting = Settings.prefixSetting("foo", Settings.STRING, ""); IDictionary <string, string> rawConfig = new Dictionary <string, string>(); rawConfig["foo.us_east_1c"] = "abcdef"; // when IDictionary <string, string> validConfig = setting.Validate(rawConfig, s => { }); // then assertEquals(1, validConfig.Count); assertEquals(rawConfig, validConfig); }