Table of Contents

Class QueryGuardAssert

Namespace
QueryGuard.Testing
Assembly
QueryGuard.Testing.dll

Assertions over a QueryGuardResult.

public static class QueryGuardAssert
Inheritance
QueryGuardAssert
Inherited Members

Remarks

The value here is not the if statement: anyone can write that against IsSuccess. It is the failure message. Because QueryGuard takes no test framework dependency, there is no native formatter to lean on, so the message has to carry the whole evidence trail itself. A failure a developer cannot act on without opening documentation is a bug in this file.

Methods

Describe(QueryGuardResult)

Renders a result as a human-readable report.

ExecutedQueryCount(int, QueryGuardResult)

Asserts an exact number of counted commands.

HasNoWarnings(QueryGuardResult)

Asserts that the session produced no warnings and no failures.

NoQueryRepeatedMoreThan(int, QueryGuardResult)

Asserts that no fingerprint occurred more than a given number of times.

Passes(QueryGuardResult)

Asserts that the session satisfied its policy.