Re: nunit-developer Digest, Vol 22, Issue 23
"Charlie Poole" <[email protected]> Wed, 19 Mar 2008 07:33:49 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <000801c889ce$513e6110$6701a8c0@ferrari> |
Hi Gary, Passing in a type means that an instance of that type will be instantiated, and using some interface the data will be extracted from that instance. I think this is good for the in-built DataSource attibute, but the underlying extension point won't rely on that mechanism? I'm of course thinking of my parameterized fixtures, where the test data comes from the instance of the fixture... Yes, I see that's a problem. Of course, your own fixture could implement the same interface, but that would only allow one data source per fixture, which seems limiting. One possibility is to use nested classes to provide the data. Another is to use a delegate. I'll have to play with this a bit more. Charlie ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ nunit-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-developer