Re: Static tests
"Charlie Poole" <[email protected]> Mon, 17 Mar 2008 13:32:15 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <004801c8886d$ff40d1b0$6501a8c0@ferrari> |
Hi Gary, I'll go back to doing snapshots when I have a more stable build - and after I release 2.4.7 and merge the changes from that branch into the head. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Gary Evans Sent: Monday, March 17, 2008 12:36 PM To: [email protected] Subject: Re: [nunit-developer] Static tests > 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 _____ Sounds like? How many syllables? Guess and win prizes with Search Charades! <http://www.searchcharades.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