Releases: bUnit-dev/bUnit
Releases · bUnit-dev/bUnit
1.33.3
Added
bunit.generatorsrespect parameters from the base class.- Supports components using constructor injection in
net9.0.
Fixed
- Use latest
System.Text.Jsondue to CVE in8.0.4.
1.32.7
1.31.3
Fixed
UploadFileshould only throw an exception when the file size exceeds the maximum allowed size. Reported by @candritzky. Fixed by @linkdotnet.
1.30.3
Fixed
UploadFiledoesn't throw an exception when the file size exceeds the maximum allowed size. Reported by @MorneZaayman in #1503. Fixed by @linkdotnet.
1.29.5
Fixed
- CI build changes to force running verification on x64 based AMD CPUs.
1.28.9
Fixed
- bUnit's built-in HTML parser did not correctly parse full HTML documents that included a <!DOCTYPE html> as the first element. Fixed by @egil.
@formnamedirective led to anInvalidOperationExceptionwhen used on a form element. Reported by @suzu2469 in #1438.
Fixed by @egil/@linkdotnet.
Changed
NavigationManageris again registered as a singleton instead of scoped.
1.27.17
Added
- Support for
IKeyedServiceProviderin net8.0. Reported by @ViRuSTriNiTy. By @linkdotnet. - Support for
net9.0. NOTE, there is no commitment as of now to support net9.0 in bUnit v1. However. Support for net9.0 may move to a future v2 release of bUnit and be deprecated in v1. However, allowing bUnit to build and work with net9.0 previews allows our users to keep testing!
Fixed
- Support for
SupplyFromQueryParameterin net8.0. Reported by @aayjaychan. Fixed by @egil and @linkdotnet.
1.26.64
Changed
- Upgraded AngleSharp to 1.0.7.
Fixed
- When the
TestContextwas disposed, the Blazor Renderer itself didn't dispose components under test. By @linkdotnet. - When navigating, the
HistoryEntryStateonNavigationManagerwill be populated. By @linkdotnet.
Added
- New overloads for
IRenderedFragmentBase.InvokeAsyncthat allow retrieving the work item's return value. By @jcparkyn.
1.25.3
- Upgrade all .NET 8 preview dependencies to .NET 8 stable.
1.24.10
Fixed
- When the
TestContextwas disposed, it disposed of all services via the service provider. However, if there were ongoing renders happening, this could cause inconsistent state in the render tree, since theTestRenderercould try to access the service provider to instantiate components.
This release changes the dispose phase such that the renderer gets disposed first, then the service provider. The disposal of any services that implementIAsyncDisposableis now also awaited. Fixed by @egil and @linkdotnet. Reported by @BenSchoen in #1227.
Added
-
Support for custom service provider factories (
IServiceProviderFactory<TContainerBuilder>). This enables the use of Autofac and other frameworks for dependency injection like on real-world ASP.NET Core / Blazor projects. By @inf9144. -
Ability to raise the
oncancelandoncloseevent, that was introduced with .NET 8.