Hi.
I have test structures something like below:
Code:
public abstract TestBase() {}
public abstract IntegrationTest : TestBase {}
[TestFixture]
public MyClassTest : IntegrationTest
I want my integration tests (hitting datbase) to not be run in parallel, but since it takes about ~10sec to wire up the test session (using NHibernate), I want as much as possbile tests for an integration test to be run within same process (to keep it fast since first test always takes ~10sec to initialize the static session factory).
So,
1) do [ExlusiveUses("Database")] and [Isolated] work in similar way for this, or am I better of with one or the other?
2) Does it matter that the abstract base class does not have [TestFixture] attribute?
Thanks.