Skip to content

Conversation

@chullybun
Copy link
Collaborator

  • Enhancement: The RunAsync methods updated to support ValueTask as well as Task for the TypeTester and GenericTester (.NET 9+ only).
  • Enhancement: Added HttpResultAssertor for ASP.NET Minimal APIs Results (e.g. Results.Ok(), Results.NotFound(), etc.) to enable assertions via the ToHttpResponseMessageAssertor.
  • Enhancement: TesterBase<TSelf> updated to support keyed services.
  • Enhancement ScopedTypeTester created to support pre-instantiated scoped service where multiple tests can be run against the same scoped instance. The existing TypeTester will continue to directly execute a one-off scoped instance. These now exist on the TesterBase<TSelf> enabling broader usage.
  • Enhancement: Added TesterBase<TSelf>.Delay method to enable delays to be added in a test where needed.
  • Fixed: The ExpectationsArranger updated to Clear versus Reset after an assertion run to ensure no cross-test contamination.

- *Enhancement:* The `RunAsync` methods updated to support `ValueTask` as well as `Task` for the `TypeTester` and `GenericTester` (.NET 9+ only).
- *Enhancement:* Added `HttpResultAssertor` for ASP.NET Minimal APIs `Results` (e.g. `Results.Ok()`, `Results.NotFound()`, etc.) to enable assertions via the `ToHttpResponseMessageAssertor`.
- *Enhancement:* `TesterBase`, `GenericTester` and `TypeTester` updated to support keyed services.
- *Enhancement:* `GenericTester` and `TypeTester` updated to support the test run execution within a DI scope (using `UseRunAsScoped`).
- *Fixed:* The `ExpectationsArranger` updated to `Clear` versus `Reset` after an assertion run to ensure no cross-test contamination.
@chullybun chullybun merged commit 150058b into main Aug 19, 2025
3 of 4 checks passed
@chullybun chullybun deleted the v5.6.0 branch August 19, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants