Static tests

"Charlie Poole" <[email protected]> Sun, 16 Mar 2008 14:35:11 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <004401c887ad$9e816030$6501a8c0@ferrari>
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



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