mendhak
Feb 1st, 2009, 08:58 AM
How would you write a unit test for a method that accepts a file stream and returns a byte array? Or a method that takes a file stream (of an image) and resizes it?
Does the unit test project need to have a dummy file always-at-hand for this (that's what I'm doing right no)? I somehow don't find this to be a very... appealing solution. So I'm wondering if you guys have another way that you use.
Does the unit test project need to have a dummy file always-at-hand for this (that's what I'm doing right no)? I somehow don't find this to be a very... appealing solution. So I'm wondering if you guys have another way that you use.