Hi Jeff, > Instead of using one factory to manufacture instances for all tests, > provide a builder that can manufacture instances that satisfy the > specifications for multiple tests by application of the specified > construction rules. > I am not sure if this is actually helpful, apart from allowing you to populate the underlying implementation of IEnumerable with a known set of items. You still need knowledge of the implementation in order to be able to add items - effectively you've just moved the code into an associated builder class.
However, in the context of writing reusable test cases this does become useful. I'd probably have gone for a simple AddItem<T>( T item ) helper method on the test class though. Yours, Morten --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
