JetBrains Rider 2021.1 Help

Code Inspection: NUnit. Range 'step' parameter value must be non-zero

The third argument of the NUnit's Range Attribute constructor specifies the step in the range of values. If the step equals zero, the test will not be executed.

[Test] public void MyTest( // 'step' parameter value is incorrect, it must be non-zero [Range(0.1, 0.9, 0)] int x) { // do something }
Last modified: 08 March 2021