1.8.15
Added
- Added test helpers that make it much easier to pass files to the
InputFile
component. Learn more in the documentation. By @egil and @linkdotnet.
Changed
Htmlizer
usesStringBuilder
instead ofList<string>
to reduce allocations and improve render speed. By @linkdotnet.
Fixes
-
TestServiceProvider
now implementsIAsyncDisposable
. This meansTestContext.Dispose()
now calls the async disposable method as well as the non-async version on the service provider. It does however not block or await the task returned, since that can lead to deadlocks.To await the disposal of async services registered in the
TestContext.Services
container, do the following:- Create a new type that derives from
TestContext
and which implementIAsyncDisposable
. - In the
DisposeAsync()
method, callServices.DisposeAsync()
. - Override the
Dispose
and have it only callServices.Dispose()
.
- Create a new type that derives from