1.8.15
Added
- Added test helpers that make it much easier to pass files to the
InputFilecomponent. Learn more in the documentation. By @egil and @linkdotnet.
Changed
HtmlizerusesStringBuilderinstead ofList<string>to reduce allocations and improve render speed. By @linkdotnet.
Fixes
-
TestServiceProvidernow 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.Servicescontainer, do the following:- Create a new type that derives from
TestContextand which implementIAsyncDisposable. - In the
DisposeAsync()method, callServices.DisposeAsync(). - Override the
Disposeand have it only callServices.Dispose().
- Create a new type that derives from