public virtual void MultiSelectByValueRemoveIKeyTest() { String srcPdf = sourceFolder + "listWithPreselectedValue.pdf"; String outPdf = destinationFolder + "selectByValueRemoveIKeyTest.pdf"; String cmpPdf = sourceFolder + "cmp_selectByValueRemoveIKeyTest.pdf"; String value = "zwei"; PdfDocument document = new PdfDocument(new PdfReader(srcPdf), new PdfWriter(outPdf)); document.AddNewPage(); PdfAcroForm form = PdfAcroForm.GetAcroForm(document, true); PdfFormField field = form.GetField("choice"); field.SetValue(value); NUnit.Framework.Assert.IsNull(field.GetPdfObject().Get(PdfName.I)); CompareTool compareTool = new CompareTool(); NUnit.Framework.Assert.IsTrue(compareTool.CompareStrings(new PdfString(value), field.GetPdfObject().GetAsString (PdfName.V))); document.Close(); NUnit.Framework.Assert.IsNull(compareTool.CompareByContent(outPdf, cmpPdf, destinationFolder)); }