public void GetByIndexReturnsPair()
        {
            KeyValueList <string, string> list = new KeyValueList <string, string>();

            list["one"] = "once";

            var pair = list.GetByIndex(0);

            Assert.AreEqual("one", pair.Key);
        }
        public void RemoveByKeyRemovesAllMatchingItems()
        {
            KeyValueList <int, string> list = new KeyValueList <int, string>();

            list[1] = "one";
            list[2] = "two";
            list[1] = "secondone";

            list.RemoveByKey(1);
            Assert.AreEqual(1, list.Count);
            Assert.AreEqual(2, list.GetByIndex(0).Key);
        }