Polly.Testing exposes APIs and utilities that can be used to assert on the composition of Polly.Core resilience pipelines.
$ dotnet add package Polly.TestingPolly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Rate-limiting, Hedging and Fallback in a fluent and thread-safe manner.

Documentation, and samples, for using Polly can be found in the repository's README and documentation.