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: 21 March 2024