public void Contains_Test() { IFileObject[] all = new IFileObject[] { new PDFNumber(1), new PDFNumber(2) }; PDFArray target = new PDFArray(all); Assert.AreEqual(all[0], all[0], "Basic assertion that PDFNumbers are equal failed"); IFileObject tofind = all[0]; bool contains = target.Contains(tofind); Assert.IsTrue(contains); tofind = all[1]; contains = target.Contains(tofind); Assert.IsTrue(contains); tofind = new PDFNumber(4); contains = target.Contains(tofind); Assert.IsFalse(contains); }