Re: XSLT Test Pattern

"Nassar, Anthony" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
By the way, I'd be happy to participate in any XML-intensive development
for version 3. I'm not asking someone to do my work. 


________________________________

	From: [email protected]
[mailto:[email protected]] On Behalf Of Nassar,
Anthony
	Sent: Tuesday, November 06, 2007 10:12 AM
	To: [email protected]
	Subject: [Nunit-users] XSLT Test Pattern
	
	
	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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.