JetBrains Rider 2019.3 Help

Code Inspection: NUnit. Parameters without provided values in test method

If you write parameterized NUnit tests, you must provide data values for each test parameter. There are different ways in which you can specify data values, which are described in the Parameterized Tests section of the NUnit documentation.

Suboptimal code

After the quick-fix

[Test] // No values for parameter 'x' public void MyTest(int x) { // do something }
[Test] // Test will be executed with 'x = 10' public void MyTest([Values(10)] int x) { // do something }
Last modified: 1 April 2020