public void ContainsKey_Test() { PDFDictionary target = new PDFDictionary(); PDFName key = new PDFName("Item1"); IFileObject value = new PDFNumber(1); target.Add(key, value); PDFName key2 = new PDFName("Item2"); target.Add(key2, value); Assert.AreEqual(2, target.Count); bool expected = true; bool actual; actual = target.ContainsKey(key); Assert.AreEqual(expected, actual); key = new PDFName("NotIncluded"); expected = false; actual = target.ContainsKey(key); Assert.AreEqual(expected, actual); }