Tests are suppose to be autonomous. I would suggest refactoring your tests
so that they are not dependent on one another.
But, if you actually need then you could consider explicitly calling the
first test when the second test runs to make sure your state is as you need
it. This would not prevent the test from running a second time, that you
would then have to watch for.
"Claus Konrad" <cl***@whoknows.it> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...
How does one control the order in which a sequence of tests are performed
using NUnit?
e.g.
[Test]
public void BTest()
{
}
[Test]
public void ATest()
{
}
When compiling it seems that the "ATest" is performed before the "BTest",
eventhough the "BTest" is declared first in the TestFixture.
I'm in a situation where the different test can be dependent on each
other - that's why.
/Claus