public void Add_SameKeyDifferentCasing_Throws() { var map = new CaseInsensitiveMap<int>(); map[ "a" ] = 1; Assert.Throws<ArgumentException>( () => map.Add( "A", 2 ) ); }
public void Add_KeyValuePairWithSameKeyDifferentCasing_Throws() { var map = new CaseInsensitiveMap<int>(); map[ "a" ] = 1; Assert.Throws<ArgumentException>( () => map.Add( new KeyValuePair<string, int>( "A", 2 ) ) ); }
public void Add_KeyValuePairWithSameKeyDifferentCasing_Throws() { var map = new CaseInsensitiveMap <int>(); map["a"] = 1; Assert.Throws <ArgumentException>(() => map.Add(new KeyValuePair <string, int>("A", 2))); }
public void Add_SameKeyDifferentCasing_Throws() { var map = new CaseInsensitiveMap <int>(); map["a"] = 1; Assert.Throws <ArgumentException>(() => map.Add("A", 2)); }