mardi 31 mai 2016

How to cover image conversion in a C# unit test?

We've written a library that generates thumbnails for various file formats. I like to unit test this library. It generates JPEG files.

How would I unit test an image conversion? How can I check if two images look alike when JPG uses a lossy format?

Microsoft TestTools has an ImageCompare class, but I'm not sure if it fits my profile. Any ideas?

Aucun commentaire:

Enregistrer un commentaire