public void IfKeyIsNotFoundConfigurationErrorsExceptionIsThrown() { var dictionary = new Dictionary <string, int>(); Assert.Throws <ConfigurationErrorsException>( () => dictionary.GetProcessor("SomeKey", "Parent")); }
public void IfKeyIsNotFoundConfigurationErrorsExceptionIsThrown() { var dictionary = new Dictionary<string, int>(); Assert.Throws<ConfigurationErrorsException>( () => dictionary.GetProcessor("SomeKey", "Parent")); }
public void IfKeyExistsTheVauleIsRetuned() { const string Key = "TheKey"; const int Value = 834; var dictionary = new Dictionary<string, int>(); dictionary[Key] = Value; dictionary.GetProcessor(Key, "parent").Should().Be(Value); }
public void IfKeyExistsTheVauleIsRetuned() { const string Key = "TheKey"; const int Value = 834; var dictionary = new Dictionary <string, int>(); dictionary[Key] = Value; dictionary.GetProcessor(Key, "parent").Should().Be(Value); }