Monthly Archives: April 2011

Unit testing graphics code

I recently worked on a project that involved heavy use of custom graphics.  Specifically, lots of lines.  The code was sufficiently important and complex that it needed to be unit tested.  However, I had never unit tested drawing code before. A simple strategy would be to paint to an image, then compare the result with […]