Пример #1
0
        public void Remove_KeyExists_RemovesAllItems()
        {
            var dict = new OneToManyDictionary <string, int>();

            dict.Add("key", 42);
            dict.Add("key", 43);

            dict.Remove("key");

            Assert.IsFalse(dict.ContainsKey("key"));
        }
		public void Remove_KeyExists_RemovesAllItems()
		{
			var dict = new OneToManyDictionary<string, int>();
			dict.Add("key", 42);
			dict.Add("key", 43);

			dict.Remove("key");

			Assert.IsFalse(dict.ContainsKey("key"));
		}
Пример #3
0
        public void Remove_KeyNotFound()
        {
            var dict = new OneToManyDictionary <string, int>();

            dict.Remove("blah");
        }
		public void Remove_KeyNotFound()
		{
			var dict = new OneToManyDictionary<string, int>();
			dict.Remove("blah");
		}