YMM
YMM

Reputation: 702

Parameterizing test fixtures the way it's done with test methods

Following up this discussion, my question is:

Is it possible to parameterize test fixtures with something like ValueSource attribute used on test methods to make NUnit generate tests based on all possible combinations of input parameter values, but for test fixture?

Upvotes: 2

Views: 600

Answers (1)

Charlie
Charlie

Reputation: 13736

This is not yet possible with TestFixtures in NUnit. The best you can do is to use TestFixtureSource (https://github.com/nunit/docs/wiki/TestFixtureSource-Attribute) but that requires you to specify the combinations you want yourself.

Upvotes: 2

Related Questions