MSTEST0014: DataRow should be valid

Property Value
Rule ID MSTEST0014
Title DataRow should be valid
Category Usage
Fix is breaking or non-breaking Non-breaking
Enabled by default Yes
Default severity Warning
Introduced in version 3.3.0
There is a code fix No

Cause

An instance of [DataRow] is not following one or multiple points of the required DataRow layout.

Rule description

[DataRow] instances should have the following layout to be valid:

  • they should only be set on a test method
  • argument count should match method parameters count
  • argument type should match method argument type

How to fix violations

Ensure that the DataRow instance matches the required layout described above.

When to suppress warnings

Do not suppress a warning from this rule. If you ignore this rule, flagged instances will be either skipped or result in runtime error.