On 30/01/07, Alan Cyment <[EMAIL PROTECTED]> wrote:
>
> Hi everyone out there! I'd like to be able to drop pairs of text files
> (e.g. "A-input.txt" + "A-output.txt") in a folder, fetch them from C#
> and perform a given transformation over each of the input file and
> then check if the output went as expected. I'd like each one of these
> cases to be a Test in itself, so that I can analyze results with a
> fine granularity. How would you achieve this using MbUnit? (i.e. not
> the file fetching, but the test case creation thing)

Take a look at this:

http://blog.dotnetwiki.org/CombinatorialTestInTheHeartOfMbUnit.aspx

You need to make a simple type that wraps up a pair of
filenames/streams and yield instances of it from your Factory method.
Your test method is called with each instance.

You get just what you're looking for in terms of test granularity.

Cheers,
G.
-- 
Graeme Foster
Aston 7 Product Manager
Aston Broadcast Systems Ltd.
http://www.aston.tv

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to