Re: Data Driven Addins
Gary Evans <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
> > > We can also provide alternate interfaces or extend existing > > ones in a > > > backward compatible way. I'd like to have specific suggestions > > > however, because I still fail to see how the extension under > > > discussion would help you: BuildFrom is called at a time > > when the user > > > fixture has not yet been constructed.> > > > > I think for NUnit 2.4 and 2.5 IterativeTest (or a property > > data source) should require the method or property providing > > the data to be static.> > That would sure make it easy.> > Charlie> Hiya! Obviously, I'd be a bit disappointed with that, but I am being biased again for the single very isolated case I have with the interaction between parameterized fixtures and paramterized tests! I suppose I could still do what I'm doing now without using the new extension point, but I'm trying to envisage how any new extension points will look in general, there is a good chance that I'm missing an obvious point ;-) We currently have a TestCaseBuilder extension point, where BuildFrom returns a TestCase. Different extensions may want to create paramterized tests for RowTest (a la MBUnit), DataSource (a la VSTS), ParameterizedTest (as we've discussed recently), but they all have similar behaviour. Our extensions currently have to create container classes around the method to be invoked, holiding the paramters to invoke it with. That's one piece of common functionality - our extensions should be able to create a common ParameterizedTestMethod, and set the expected exception etc. Actually obtaining the parameters seems to be a secondary task (there's less commanality - the parameters are either given by attributes decorating the method, or by a separate IEnumerable method, or potentially in the future by a further extension point - whether Theory/ or Pex) Cheers, Gary _________________________________________________________________ Share what Santa brought you https://www.mycooluncool.com ------------------------------------------------------------------------- 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