public void UnknownKeyReturnsDefaultInt() { var dict = new OrderedCaseInsensitiveStringKeyDictionary <int> { ["x"] = 17 }; Assert.AreEqual(17, dict["x"]); Assert.AreEqual(default, dict["y"]);
public void KeyIsCaseInsensitive() { var dict = new OrderedCaseInsensitiveStringKeyDictionary <int> { ["x"] = 17 }; Assert.AreEqual(17, dict["x"]); Assert.AreEqual(17, dict["X"]); }
public void ValueCanBeOverwritten() { var dict = new OrderedCaseInsensitiveStringKeyDictionary <int> { ["x"] = 17, ["X"] = 21 }; Assert.AreEqual(21, dict["x"]); Assert.AreEqual(21, dict["X"]); }