XSLT Test Pattern
"Nassar, Anthony" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
I have to admit that I gave MbUnit a spin recently. It's packaged somewhat haphazardly, but its design is provocative. Basically, it's gone all the way toward using metadata to declare much more complex patterns than I had been using. You can see my blog entry here <http://slideguitarist.blogspot.com/2007/11/mbunit-vs-nunit-cage-match.h tml> , if you're interested. There is a pattern I use all the time: load XML with or without validation, with or without an XmlResolver; pass it through 1 or more XSL transforms, with or without an XmlResolver; apply XPath expressions using namespaces and assert something about what I get back. I don't want XML diffing, by the way. Of course I could do all this in my TestFixtureSetUp, or create an abstact base class that does the setup by calling virtual protected methods that implement the steps in the "template pattern" I describe above, but then I'd be mixing NUnit's declarative design with an imperative design. It's kind of handy, though, to have a "test invoker" inject node sets or scalar values that come back from the XPathNavigator object that the fixture (or the fixture "runner") is maintaining for me. So: is there an idiomatic way to do some of these things in NUnit? Namely, declare a fixture setup pattern, and get the test runner to invoke my [Test] methods with arguments? Should I cross-post this to the Version 3 Development group? ________________________________ Cell: (703) 994-0954 Blog: http://slideguitarist.blogspot.com/ <blocked::http://slideguitarist.blogspot.com/> Music: http://www.soundclick.com/thecompletists <http://www.soundclick.com/thecompletists> "God love me, and I'm a hell of a fighter.." - Floyd Mayweather ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users