Closed beauchama closed 2 weeks ago
Yeah, we need to ensure we have support for this. Should be a straightforward fix, but something we need to prioritize. Thanks for putting this on our radar.
@linkdotnet lets put this on the todo list for next fridays "bUnit dev sesions" stream.
Sure - hopefully it is straightforward and you can finally tackle the TS->C# stuff :D
I fiddled around and the fix is indeed straightforward.
Is the feature request related to a problem? Please elaborate.
Hello! I encounter a problem with Bunit which can't run tests because the component inject services from the constructor. The constructor injection is a new feature for Blazor from .NET 9.0. I consider is not a bug because Bunit doesn't use this new approach and it is normal!
I understand that at this moment .NET 9.0 is not ready (release canditate 2) but it will be ready in november. I just wanted to put a trace. It will be nice that Bunit can run tests with this new feature :D
It is not a big problem because I can use the
[Inject]
attribute.Additional context Here how it is used the constructor injection. It is same thing if we use the
Inject
attributeThe error from the test