Testing Code in iTextSharp
Is it possible to perform TDD when creating code with iTextSharp? If no开发者_如何转开发t, is there any kind of testing to check your outputs?
I don't have a full .Net solution for you but there is an open source Java version called JpdfUnit that may or may not be helpful. It uses Apache's PDFBox behind the scenes to do the actual PDF reading. The good news is that there is a .Net wrapper for PDFBox. You'll have to roll your own unit tests but hopefully it will be helpful. Here's a link to someone that gives a little more information on how to use PDFBox.net.
PDF is mostly a visual medium, however, so if you want to test if things "look right", you'll have to manually so that unfortunately.
精彩评论