bunit 1.1.5

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

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package bunit -Version 1.1.5
dotnet add package bunit --version 1.1.5
<PackageReference Include="bunit" Version="1.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add bunit --version 1.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: bunit, 1.1.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install bunit as a Cake Addin
#addin nuget:?package=bunit&version=1.1.5

// Install bunit as a Cake Tool
#tool nuget:?package=bunit&version=1.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on bunit:

Package Downloads
Renders Blazor markup in dotnet-interactive notebooks.
Package Description
Package Description

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on bunit:

Repository Stars
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
Blazor Component Library based on Material design. The goal is to do more with Blazor, utilizing CSS and keeping Javascript to a bare minimum.
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
NetLearner: The Internet Resource Learning Helper built with ASP .NET Core

Version History

Version Downloads Last updated
1.2.36-preview 995 6/25/2021
1.2.35-preview 69 6/24/2021
1.2.28-preview 633 5/26/2021
1.2.27-preview 192 5/22/2021
1.2.26-preview.gd07edb4207 79 5/21/2021
1.1.5 28,208 4/30/2021
1.0.19 13,428 4/11/2021
1.0.16 317 4/11/2021
1.0.0-preview-02 1,563 3/26/2021
1.0.0-preview-01 28,375 12/24/2020
1.0.0-beta-11 21,241 10/26/2020
1.0.0-beta-10 16,173 9/15/2020
Show less