Skip to content

PgTestCase

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Identifies one statically discovered backend test without invoking its managed method in the host process.

public sealed class PgTestCase

Inheritance: object

PgTestCase(string, string?, string, string?, string?)

Section titled “PgTestCase(string, string?, string, string?, string?)”

Identifies one statically discovered backend test without invoking its managed method in the host process.

public PgTestCase(string name, string? schema, string functionName, string? expectedError = null, string? ignoreReason = null)

Parameters:

name — string

The original managed test name used in reports.

schema — string

The explicit SQL schema, or null for the installed extension schema.

functionName — string

The generated zero-argument SQL function name.

expectedError — string

The exact expected server error message, or null for success.

ignoreReason — string

The host framework’s ignore reason, or null to run the test.

Gets the exact expected PostgreSQL primary message, or null for successful execution.

public string? ExpectedError { get; }

Value: string

Gets the generated SQL function name.

public string FunctionName { get; }

Value: string

Gets the reason the host framework should report this case as ignored, or null to run it.

public string? IgnoreReason { get; }

Value: string

Gets the original managed test name.

public string Name { get; }

Value: string

Gets the explicit schema, or null for the installed extension schema.

public string? Schema { get; }

Value: string

Returns the managed test name for ordinary data-driven test reports.

public override string ToString()

Returns: string

The stable managed test name.