Exemplo n.º 1
0
        public void Remove_KeyValuePairWithSameKeyDifferentCasing_Removed()
        {
            var map = new CaseInsensitiveMap<int>();
            map[ "a" ] = 1;

            map.Remove( new KeyValuePair<string, int>( "A", 1 ) );

            Assert.That( map, Is.Empty );
        }
Exemplo n.º 2
0
        public void Remove_SameKeyDifferentCasing_Removed()
        {
            var map = new CaseInsensitiveMap <int>();

            map["a"] = 1;

            map.Remove("A");

            Assert.That(map, Is.Empty);
        }
Exemplo n.º 3
0
        public void Remove_KeyValuePairWithSameKeyDifferentCasing_Removed()
        {
            var map = new CaseInsensitiveMap <int>();

            map["a"] = 1;

            map.Remove(new KeyValuePair <string, int>("A", 1));

            Assert.That(map, Is.Empty);
        }
Exemplo n.º 4
0
        public void Remove_SameKeyDifferentCasing_Removed()
        {
            var map = new CaseInsensitiveMap<int>();
            map[ "a" ] = 1;

            map.Remove( "A" );

            Assert.That( map, Is.Empty );
        }