Re: Static tests

Gary Evans <[email protected]> Mon, 17 Mar 2008 19:36:05 +0000
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
> Message: 2> Date: Sun, 16 Mar 2008 14:35:11 -0700> From: "Charlie Poole" <[email protected]>> Subject: [nunit-developer] Static tests> To: <[email protected]>> Message-ID: <004401c887ad$9e816030$6501a8c0@ferrari>> Content-Type: text/plain; charset="us-ascii"> > Hi All,> > I just checked in changes to CVS HEAD to allow static methods> as tests. SetUp, TearDown, TestFixtureSetUp and TestFixtureTearDown> may also be static.> > Jim Newkirk has argued that fixture setup and teardown should be> static, rather than instance, methos. Some people have complained> that FxCop gives errors when a method can be static but isn't. > > Whatever your reason, use it if it works for you. Or not. :-)> > Charlie> 
Hi Charlie,
 
I think that this is good - I don't use them personally, but I've been reading on various F# forums that they've wanted static test methods. Also, they've wanted the static test methods to be recognised even if they don't live in a TestFixture class. I was half-tempted to create an extension, but I'm busy enough as it is, any takers?
 
You mentioned the CVS HEAD - will you do a package of this before making too many changes? I dont' have any tool to grab the sources directly unless they're packaged, and it'll be easier to see if my extension still works with 2.5 if the changes are more incremental ;-)
 
Cheers,
Gary
 
_________________________________________________________________
Who's friends with who and co-starred in what?
http://www.searchgamesbox.com/celebrityseparation.shtml

-------------------------------------------------------------------------
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