Esempio n. 1
0
        public void AddTest()
        {
            NonUniqueDictionary <string, string> collection = new NonUniqueDictionary <string, string>();

            collection.Add("1", "2");

            Assert.IsTrue(collection["1"].Contains("2"));
        }
Esempio n. 2
0
        public void CountTest()
        {
            NonUniqueDictionary <string, string> collection = new NonUniqueDictionary <string, string>();

            collection.Add("1", "2");

            Assert.AreEqual(1, collection.Count);
        }
Esempio n. 3
0
        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"]);
        }