RowTests?

Discussions

Ask a Question
Back to All

RowTests?

Are there any examples of using SpecsFor with NUnit's RowTests? (Now called TestCase, I believe)

I'd like to replace some SpecFlow (ewww) tests with SpecsFor, but they're making heavy use of the table inputs. The modern NUnit equivalent seems to be the TestCase attribute, but where would it go? It's normally used in place of the [Test] attribute, but the parameters really should be going to the When method. I could just ditch the When, use TestCase and be done with it, but I guess I'm looking for the "yup, that's how you do it" here.