Parameterized testfixture with default ctor
Hi
Are there any plans having similar functionality as parameterized testfixture but instead of ctor injection setting a prop? Or can I achieve what I want some other way?
Background...
I have around 1000 unit test where most of them derive from a common base class. I would like my tests to run twice with different configuration - parameterized testfixtures (indata declared as attributes on base type). It works just fine but I would prefer not having to impl an explicit ctor on all my test fixtures.
Today....
[TestFixture(
[TestFixture(
public abstract class TestBase
{
ctor(string)
}
public class TestFixture : TestBase
{
ctor(string)
}
...I would prefer something like this or similar....
[TestFixture(
[TestFixture(
public abstract class TestBase
{
public string SomeValue {get;set;}
}
public class TestFixture : TestBase
{
}
Regards
Roger
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- NUnit V2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Roger Kratz for more information if necessary.