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
resultQueryGuardResultThe 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
resultis null.- QueryGuardBudgetExceededException
A warning or failure was reported.