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 PgTestCaseInheritance: object
Constructors
Section titled “Constructors”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.
Properties
Section titled “Properties”ExpectedError
Section titled “ExpectedError”Gets the exact expected PostgreSQL primary message, or null for successful execution.
public string? ExpectedError { get; }Value: string
FunctionName
Section titled “FunctionName”Gets the generated SQL function name.
public string FunctionName { get; }Value: string
IgnoreReason
Section titled “IgnoreReason”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
Schema
Section titled “Schema”Gets the explicit schema, or null for the installed extension schema.
public string? Schema { get; }Value: string
Methods
Section titled “Methods”ToString()
Section titled “ToString()”Returns the managed test name for ordinary data-driven test reports.
public override string ToString()Returns: string
The stable managed test name.