Skip to main content
bunit package icon

bunit

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.

Total Downloads
14.9M
14,872,214
Published
Feb 27, 2026
Latest stable version

Install

.NET CLI
dotnet add package bunit --version 2.6.2
Package Manager Console
Install-Package bunit -Version 2.6.2
PackageReference
<PackageReference Include="bunit" Version="2.6.2" />

Frameworks

net8.0 net9.0 net10.0 net11.0

Dependencies

Adoption guide

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

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

The published metadata declares 48 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.