public void Clear() { var map = new MapField <string, string> { { "x", "y" } }; Assert.AreEqual(1, map.Count); map.Clear(); Assert.AreEqual(0, map.Count); map.Add("x", "y"); Assert.AreEqual(1, map.Count); }
public void Clear() { var map = new MapField <string, string> { { "x", "y" } }; Assert.AreEqual(1, map.Count); map.Clear(); Assert.AreEqual(0, map.Count); map.Add("x", "y"); Assert.AreEqual(1, map.Count); }