PrioritizedFixture

Oct 9, 2009 at 8:36 AM
Edited Oct 9, 2009 at 8:39 AM

Hi,

 Ok so you guys pool out [SetUp] and [TearDown] witch I totally agree with.

 But why add [PrioritizedFixture]. This will make coders believe is ok to write tests that depend on each other.

 Do you have a reason or a use case for this attribute ?

Regards,

 

Edit: I am refering to the PrioritizedFixture in examples

Oct 9, 2009 at 4:22 PM

For future reference, questions about xUnit.net core (rather than the contrib project delivers, like Resharper support) should be asked in the xUnit.net forums.

I presume you're talking about this:

http://xunit.codeplex.com/SourceControl/changeset/view/42405#382621

It is an example, not part of xUnit.net itself. It's not shipped as a binary, and it's not something we recommend for people doing TDD. The purpose is to illustrate an extensibility point in the system ("how can I influence the order tests are run in?") by way of a common feature request for users who are using xUnit.net for acceptance testing.