ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Code Inspection: NUnit. Specified values are not compatible with the test parameter type

Last modified: 21 July 2022

This inspection notifies you about mismatch of a value in the test data of a parameterized test and the type of the corresponding parameter in the test method.

In the example below, the first two arguments from and to of the Range attribute are compatible with the parameter type int, but the value of the third argument step, makes the resulting test values incompatible with int: