Testing Blazor components with bUnit

In my Blazor projects, the business logic has been tested with xUnit for a long time, but the components themselves were not. If an @if showed the wrong button, I only saw it by opening the page. In this post, we add a bUnit test project to a Blazor application and cover the cases I run into most often.

[Read More]
Categories: .NET  Blazor  Tags: Blazor  bUnit  xUnit  Tests  .NET  C#