Egil Hansen's testing library for Blazor components may be what you're looking for. https://bunit.egilhansen.com
Kindly help.. Please provide any example which has unit test for component testing by mocking services.
0Posted 16 days ago by selliott
This library has only injecting service.. Can we have anything where we can mock service.Posted 16 days ago by preetiislur
Here's a blog post that talks about mocking a service in Blazor: https://www.telerik.com/blogs/unit-testing-blazor-components-bunit-justmockPosted 16 days ago by selliott