JetBrains Rider 2024.1 Help

Code Inspection: NUnit. Redundant argument in TestCase attribute

Category

NUnit

ID

NUnit.RedundantArgumentInTestCaseAttribute

EditorConfig

resharper_n_unit_redundant_argument_in_test_case_attribute_highlighting

Default severity

Warning

Language

C#

Requires SWA

No

This inspection notifies you that according to the test method signature, an argument in the [TestCase] attribute is redundant.

Although a redundant argument will be ignored during test execution, it is a good idea to remove it to reduce the chances of unexpected behavior if you decide to modify the method in the future.

Last modified: 10 April 2024