1.4.15
This release reintroduces Stub<TComponent> and related back into the main library, so the "preview" library bunit.web.mock is already obsolete.
Big shout out to bUnit's sponsors who helped make this release happen.
The higher tier sponsors are:
Other sponsors are:
- Hassan Rezk Habib (@hassanhabib)
- Jonny Larsson (@Garderoben)
- Domn Werner (@domn1995)
- Mladen Macanović (@stsrki)
- @ChristopheDEBOVE
Added
- Add
ComponentFactoriesextensions method that makes it easy to register an instance of a replacement component. By @egil. - Add ability to pass
ServiceProviderOptionstoTestServiceProviderthrough property to allow users to customize the service provider. By @rodolfograve.
Fixed
- Changed
SetParametersAndRendersuch that it rethrows any exceptions thrown by the component under testsSetParametersAsyncmethod. Thanks to @bonsall for reporting the issue. Fixed by @egil. onclickon a button inside a form will raise theonsubmitevent for the form itself. Reported by [@egil]. Fixed by @linkdotnet.- Only forms are allowed to have a
onsubmitevent handler. Whenonsubmitis invoked from a non-form element results in an exception. Fixed by @linkdotnet.