public void RemoveByKey_KeyNotExists_ReturnsFalse() { var dctIntStr = new DictionaryImplementedWithList <int, string>(); dctIntStr.Add(1, "a"); dctIntStr.Remove(2).Should().BeFalse(); }
public void RemoveItem_ItemNotExists_ReturnsFalse() { var dctIntStr = new DictionaryImplementedWithList <int, string>(); dctIntStr.Add(1, "a"); dctIntStr.Remove(new KeyValuePair <int, string>(2, "a")).Should().BeFalse(); }