Table of Contents

RDT00002: Test parameters without rows

Severity: Warning  ·  Family: RDT (RDCore.UnitTesting)  ·  Raised by: TestShapeAnalyzer

A test takes a parameter that is neither Optional nor a ParamArray, and has no '@TestCase row to take its argument from.

A test with parameters runs once for each '@TestCase row above it, with the row's values as its arguments. A test with no row has no value for a required parameter.

It is reported at the test's name. A test whose parameters are all Optional, or a ParamArray, runs with no argument and is not reported.

How it is raised

Situation Example Resolution
A test with a parameter and no row. '@TestMethod above Public Sub Doubles(ByVal value As Long). Add a row for each case to run, such as '@TestCase(2, 4), or remove the parameter.

See also