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
Prefix
The prefix of RDCore.UnitTesting's diagnostic codes: RDT.
public const string Prefix = "RDT"
Field Value
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
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
ExpectedErrorNotOnATest
RDT00006: '@ExpectedError on a procedure that is not a test.
public static RDCoreDiagnosticCode ExpectedErrorNotOnATest { get; }
Property Value
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
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
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
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
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
TestParametersWithoutRows
RDT00002: a test that takes a required parameter and has no '@TestCase row to take its arguments from.
public static RDCoreDiagnosticCode TestParametersWithoutRows { get; }