public void GetElementByInsertionOrder_Test() { StableDictionary<int, string> dictionary = new StableDictionary<int, string>(); dictionary.Add(4, "a"); dictionary.Add(3, "b"); dictionary.Add(2, "c"); dictionary.Add(1, "d"); Assert.AreEqual("d", dictionary.GetElementByInsertionOrder(3)); }
public void GetElementByInsertionOrder_Test() { StableDictionary <int, string> dictionary = new StableDictionary <int, string>(); dictionary.Add(4, "a"); dictionary.Add(3, "b"); dictionary.Add(2, "c"); dictionary.Add(1, "d"); Assert.AreEqual("d", dictionary.GetElementByInsertionOrder(3)); }
public void GetElementByInsertionOrder_WrongPosition() { StableDictionary <int, string> dictionary = new StableDictionary <int, string>(); dictionary.GetElementByInsertionOrder(-1); }
public void GetElementByInsertionOrder_WrongPosition() { StableDictionary<int, string> dictionary = new StableDictionary<int, string>(); dictionary.GetElementByInsertionOrder(-1); }