by Jonathan Bright | Nov 9, 2026 | Tutorials
A configuration object can exist and still be unusable. A worker with a missing queue name or a batch size of zero should be rejected before its work begins. This tutorial builds and tests that ordering rule for a small C# console application. The example uses an...
by Jonathan Bright | Nov 9, 2026 | Tutorials
A failed sign-in event needs enough information to count failures and identify their category. It does not need the submitted password, bearer token, email address, or raw exception message. Give that event its own small schema, then test both the fields and their...
by Jonathan Bright | Nov 9, 2026 | Tutorials
An asynchronous failure test must observe the returned task. A call that returns without throwing can still fail later, after an await. Cancellation needs a separate check: requesting it does not prove that the operation accepted it. This tutorial tests both outcomes...
by Jonathan Bright | Nov 9, 2026 | Tutorials
A snapshot test compares current output with an approved example. That is useful when the output itself is a contract, such as a small customer-facing text report. It becomes less useful when every internal change rewrites a large baseline that nobody can confidently...
by Jonathan Bright | Nov 8, 2026 | Tutorials
A few examples can show that a parser handles familiar inputs. A property asks whether a relationship holds across many generated cases. For integer parsing, a useful starting relationship is: format a value as invariant decimal text, parse that text, and recover the...