bunit 1.0.0-preview-02

This is a prerelease version of bunit.
There is a newer version of this package available.
See the version list below for details.
Install-Package bunit -Version 1.0.0-preview-02
dotnet add package bunit --version 1.0.0-preview-02
<PackageReference Include="bunit" Version="1.0.0-preview-02" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add bunit --version 1.0.0-preview-02
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: bunit, 1.0.0-preview-02"
#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.0.0-preview-02&prerelease

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

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, inject services, mock JavaScript interopt, and perform snapshot testing.

NOTE: This version includes support for xUnit as the general-purpose test framework. In other words, installing this package is equivalent to installing the packages "bunit.core", "bunit.web", and "bunit.xunit".

If you prefer Nunit or MSTest, just install the “bunit.core” and “bunit.web” packages.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on bunit:

Package Downloads

Extension methods that provide fluent assertions on top of BUnit.


Package Description


Renders Blazor markup in dotnet-interactive notebooks.

Blazored.Toast.TestExtensions The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A testing library to provide helper extensions for Blazored.Toast


Package Description

GitHub repositories (12)

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

Repository Stars
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
Blazor Component Library based on Material design. The goal is to do more with Blazor, utilizing CSS and keeping Javascript to a bare minimum.
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
A set of enterprise-class UI components based on Bootstrap and Blazor
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.
Version Downloads Last updated
1.9.1-preview 24 5/21/2022
1.8.15 473 5/19/2022
1.7.7 12,253 4/29/2022
1.6.4 66,426 2/22/2022
1.5.12 12,160 2/15/2022
1.4.15 66,631 12/18/2021
1.3.42 56,589 11/9/2021
1.3.38-preview 112 11/9/2021
1.3.35-preview 5,828 10/20/2021
1.3.30-preview 1,077 10/15/2021
1.2.49 92,878 8/9/2021
1.2.49-preview 205 8/7/2021
1.2.36-preview 4,257 6/25/2021
1.2.35-preview 140 6/24/2021
1.2.28-preview 1,452 5/26/2021
1.2.27-preview 258 5/22/2021
1.2.26-preview.gd07edb4207 126 5/21/2021
1.1.5 112,491 4/30/2021
1.0.19 24,990 4/11/2021
1.0.16 607 4/11/2021
1.0.0-preview-02 2,004 3/26/2021
1.0.0-preview-01 46,021 12/24/2020
1.0.0-beta-11 31,048 10/26/2020
1.0.0-beta-10 21,843 9/15/2020