Table of Contents

Method HasNoWarnings

Namespace
QueryGuard.Testing
Assembly
QueryGuard.Testing.dll

HasNoWarnings(QueryGuardResult)

Asserts that the session produced no warnings and no failures.

public static void HasNoWarnings(QueryGuardResult result)

Parameters

result QueryGuardResult

The result.

Remarks

Stricter than Passes(QueryGuardResult). Reasonable for a test that pins an endpoint's query behavior exactly; too strict as a default, since a candidate warning is often a known and documented pattern.

Exceptions

ArgumentNullException

result is null.

QueryGuardBudgetExceededException

A warning or failure was reported.