Skip to main content
net5.0net6.0.NETStandard2.1

bUnit is a testing library for Blazor components. You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic. You can interact with and inspect the component under test, trigger event handlers, provide cascading values, and inject services. bUnit also includes a complete fake implementation of Blazor's authentication and authorization logic, navigation manager, and JSInterop.

Published
May 21, 2021
5y ago
Total Downloads
18.1M
18,057,362

Install

dotnet add package bunit --version 1.2.26-preview.gd07edb4207
ProductVersions
.NET
net5.0net6.0
.NET Standard
netstandard2.1

Changes from Previous Version

No structural changes between v1.1.5 and v1.2.26-preview.gd07edb4207.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.