ReSharper 2024.1 Help

Code inspection: NUnit. Values for test method parameters are not provided.

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.

[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: 08 April 2024