A “PDFUnit-NET” version for a .NET environment is intended be provided in Oktober 2014. A “proof of concept” is going well:
[TestMethod] public void HasAuthor() { String filename = path + "resources/pdf/documentInfo/documentInfo_allInfo.pdf"; AssertThat.document(filename) .hasAuthor() .matchingExact("PDFUnit.com") ; }
[TestMethod] [ExpectedException(typeof(PDFUnitValidationException))] public void HasAuthor_StartingWith_WrongString() { String filename = path + "resources/pdf/documentInfo/documentInfo_allInfo.pdf"; AssertThat.document(filename) .hasAuthor() .startingWith("wrong_sequence_intended") ; }
PDFUnit-NET is fully compatible to PDFUnit-Java because a DLL is generated from the Java version. However, this means that method names in C# begin with lowercase letters.
The development of PDFUnit-NET is not finished, so this code might change.
PDFUnit-NET will come with it's own special manual.