Table of Contents

Class TestDiagnostics

Namespace
RDCore.UnitTesting.Protocol
Assembly
RDCore.UnitTesting.Protocol.dll

The diagnostics RDCore.UnitTesting reports of the tests a module declares, under its own prefix (Prefix). Each code has a page under HelpBaseUri.

public static class TestDiagnostics
Inheritance
TestDiagnostics
Inherited Members

Fields

HelpBaseUri

The address of the pages of RDCore.UnitTesting's diagnostics: the page of a code is <HelpBaseUri>/<code>.html, its code in lowercase.

public const string HelpBaseUri = "https://rubberduck-vba.github.io/RDCore.UnitTesting/diagnostics"

Field Value

string

Prefix

The prefix of RDCore.UnitTesting's diagnostic codes: RDT.

public const string Prefix = "RDT"

Field Value

string

Properties

ExpectedErrorHandled

RDT00008: a test with '@ExpectedError whose own On Error GoTo or On Error Resume Next handles the error before the test's run can see it.

public static RDCoreDiagnosticCode ExpectedErrorHandled { get; }

Property Value

RDCoreDiagnosticCode

ExpectedErrorNotARuntimeErrorCode

RDT00007: an '@ExpectedError argument written as a diagnostic code that is not the code of a run-time error: VBR and five digits.

public static RDCoreDiagnosticCode ExpectedErrorNotARuntimeErrorCode { get; }

Property Value

RDCoreDiagnosticCode

ExpectedErrorNotOnATest

RDT00006: '@ExpectedError on a procedure that is not a test.

public static RDCoreDiagnosticCode ExpectedErrorNotOnATest { get; }

Property Value

RDCoreDiagnosticCode

SeveralSetupProcedures

RDT00005: two or more procedures of one module annotated with the same setup or cleanup annotation ('@ModuleInitialize, '@ModuleCleanup, '@TestInitialize, '@TestCleanup).

public static RDCoreDiagnosticCode SeveralSetupProcedures { get; }

Property Value

RDCoreDiagnosticCode

TestCaseArity

RDT00003: a '@TestCase row with fewer values than its test's required parameters, or more values than its test has parameters.

public static RDCoreDiagnosticCode TestCaseArity { get; }

Property Value

RDCoreDiagnosticCode

TestIsNotASub

RDT00001: a Function or a Property annotated as a test, or as a module's setup or cleanup. Only a Sub runs as one.

public static RDCoreDiagnosticCode TestIsNotASub { get; }

Property Value

RDCoreDiagnosticCode

TestIsNotPublic

RDT00009: a Private or Friend procedure annotated as a test, or as a module's setup or cleanup. A test run calls it from outside its module, so only a Public one runs.

public static RDCoreDiagnosticCode TestIsNotPublic { get; }

Property Value

RDCoreDiagnosticCode

TestOutsideTestModule

RDT00004: a procedure annotated as a test, or as a module's setup or cleanup, in a module that has no '@TestModule.

public static RDCoreDiagnosticCode TestOutsideTestModule { get; }

Property Value

RDCoreDiagnosticCode

TestParametersWithoutRows

RDT00002: a test that takes a required parameter and has no '@TestCase row to take its arguments from.

public static RDCoreDiagnosticCode TestParametersWithoutRows { get; }

Property Value

RDCoreDiagnosticCode