public void Remove_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.Remove(key);

            Assert.AreEqual(expected, actual);
            Assert.AreEqual(1, target.Count);

            expected = false;
            key      = new PDFName("NotFound");
            actual   = target.Remove(key);

            Assert.AreEqual(expected, actual);
            Assert.AreEqual(1, target.Count);
        }
        public void Remove_Test1()
        {
            ICollection <KeyValuePair <PDFName, IFileObject> > target = new PDFDictionary();
            PDFName     key   = new PDFName("Item1");
            IFileObject value = new PDFNumber(1);
            KeyValuePair <PDFName, IFileObject> item = new KeyValuePair <PDFName, IFileObject>(key, value); // TODO: Initialize to an appropriate value

            target.Add(item);

            PDFName key2 = new PDFName("Item2");

            item = new KeyValuePair <PDFName, IFileObject>(key2, value);
            target.Add(item);

            Assert.AreEqual(2, target.Count);

            bool expected = true;
            bool actual   = target.Remove(item);

            Assert.AreEqual(expected, actual);
            Assert.AreEqual(1, target.Count);
        }