Add testing documentation (#1631)

This commit is contained in:
Frank Ray
2025-04-08 15:58:25 +01:00
committed by GitHub
parent 958820dd66
commit 1dabf25e1c
6 changed files with 132 additions and 15 deletions

View File

@ -85,10 +85,8 @@ on the main thread.
### Unit Testing Best Practices
For testing of console output, Spectre.Console has [`IAnsiConsole`](xref:T:Spectre.Console.IAnsiConsole) that can be
injected into your application.
The [Spectre.Console.Test](https://www.nuget.org/packages/Spectre.Console.Testing/) contains a set of utilities for
capturing the output for verification, either manually or via a tool such
as [Verify](https://github.com/VerifyTests/Verify).
injected into your application. The [Spectre.Console.Test](https://www.nuget.org/packages/Spectre.Console.Testing/)
NuGet package contains utilities for capturing the console output for verification. See the [Unit Testing](cli/unit-testing) page for further guidance.
### Analyzer for Best Practices