-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SetParametersAndRender will breaks with .NET 8 #1165
Comments
@egil: I have a PR ready when I get back from the holidays (tomorrow evening). |
FYI: In net 8 some of the things we need reflection for are now available without. |
Thanks for the heads up. Yes there are other things for net8.0. Mainly the renderer has a new method that the bUnit one has to implement. And there is a new test double we have to provide. |
There should be a prerelease on NuGet soon. |
SetParametersAndRender is working as expected. Thanks for the quick fix guys! |
Describe the bug
The extension function SetParametersAndRender throws a NullPointerException since the ComponentState.SetDirectParameters methods vilisbility is changed to internal in .NET 8.0 Preview 4.
The exception is raised here:
bUnit/src/bunit.core/Rendering/TestRenderer.cs
Lines 211 to 213 in e654d6d
Example:
Testing this component:
With this test:
Results in this output:
Version info:
Additional context:
Related changes in dotnet/aspnetcore:
The text was updated successfully, but these errors were encountered: