Skip to content

Beta 9 - adds support for .net 5.0 preview 8 and later

Compare
Choose a tag to compare
@egil egil released this 26 Aug 21:18
· 1773 commits to main since this release

[1.0.0-beta-9] - 2020-08-26

This release contains a couple of fixes, and adds support for .NET Preview 8 and later. There are no breaking changes in this release.

A huge thank you goes out to all who contributed to this release, including pharry22, for submitting fixes and improvements to the documentation.

See all changes below:

Added

List of new features.

  • Added InvokeAsync(Func<Task>) to RenderedComponentInvokeAsyncExtensions. By @JeroenBos in #151.
  • Added ITestRenderer Renderer { get ; } to IRenderedFragment to make it possible to simplify the IRenderedComponentBase<TComponent> interface. By @JeroenBos in #151.
  • Added support for scoped CSS to MarkupMatches and related comparer methods. By @egil in #195.

Changed

List of changes in existing functionality.

  • Moved InvokeAsync(), Render() and SetParametersAndRender() methods out of IRenderedComponentBase<TComponent> into extension methods. By @JeroenBos in #151.
  • Accessing Markup, Nodes and related methods on a rendered fragment whose underlying component has been removed from the render tree (disposed) now throws a ComponentDisposedException. By @egil in #184.
  • Changed bUnit's build to target both .net 5.0 and .net standard 2.1. By @egil in #187.

Fixed

List of any bug fixes.

  • Fixes #175: When a component referenced in a test, e.g. through the FindComponent() method was removed from the render tree, accessing the reference could caused bUnit to look for updates to it in the renderer, causing a exception to be thrown. By @egil in #184.