public void AddTest() { NonUniqueDictionary <string, string> collection = new NonUniqueDictionary <string, string>(); collection.Add("1", "2"); Assert.IsTrue(collection["1"].Contains("2")); }
public void CountTest() { NonUniqueDictionary <string, string> collection = new NonUniqueDictionary <string, string>(); collection.Add("1", "2"); Assert.AreEqual(1, collection.Count); }
public void IndexTest() { NonUniqueDictionary <string, string> collection = new NonUniqueDictionary <string, string>(); HashSet <string> set = new HashSet <string> { "1" }; collection.Add(new KeyValuePair <string, HashSet <string> >("0", set)); Assert.AreEqual(set, collection["0"]); }