public virtual void PutTest() { PdfName key1 = new PdfName("Key1"); PdfName key2 = new PdfName("Key2"); PdfDictionary dictionary = new PdfDictionary(); PdfTarget target = PdfTarget.Create(dictionary); target.Put(key1, new PdfNumber(23)).Put(key2, new PdfString("Hello, world!")); NUnit.Framework.Assert.AreEqual(23, dictionary.GetAsNumber(key1).IntValue()); NUnit.Framework.Assert.AreEqual("Hello, world!", dictionary.GetAsString(key2).GetValue()); }