bunit 1.0.0-preview-01

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of bunit.
There is a newer version of this package available.
See the version list below for details.
dotnet add package bunit --version 1.0.0-preview-01
NuGet\Install-Package bunit -Version 1.0.0-preview-01
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="bunit" Version="1.0.0-preview-01" />
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-01
#r "nuget: bunit, 1.0.0-preview-01"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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-01&prerelease

// Install bunit as a Cake Tool
#tool nuget:?package=bunit&version=1.0.0-preview-01&prerelease

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 (12)

Showing the top 5 NuGet packages that depend on bunit:

Package Downloads

Extension methods that provide fluent assertions on top of BUnit.

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


Breakdance is a testing framework for managing the dangerous dance of shipping public APIs. This package helps generate public API reports for any .NET assembly, and compare them against a prior unit test run. That way, if something in the API surface changed, the unit test will fail.


Extended functionality of Stoic Dreams Test Framework, adding funtionality to handle testing against rendered .razor components for unit and integration testing.


A highly modular Framework to write Blazor Applications with a husstle free vertical sliced architecture - Easy. Flexible. Focused.

GitHub repositories (20)

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

Repository Stars
Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
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
Microsoft Fluent UI Blazor components library. For use with .NET 6.0 or higher Blazor applications
Version Downloads Last updated
1.20.8 8,373 5/21/2023
1.20.7-preview 132 5/17/2023
1.19.14 28,956 4/26/2023
1.18.4 146,579 2/26/2023
1.17.2 8,022 2/22/2023
1.16.2 63,555 2/7/2023
1.15.5 8,909 2/4/2023
1.14.4 75,432 1/11/2023
1.13.5 71,621 12/16/2022
1.12.6 178,755 11/8/2022
1.12.4-preview 463 10/26/2022
1.11.7 68,714 10/13/2022
1.10.14 66,810 9/16/2022
1.10.13-preview 200 9/16/2022
1.9.8 290,197 6/7/2022
1.9.7-preview 1,723 5/26/2022
1.9.1-preview 705 5/21/2022
1.8.15 48,467 5/19/2022
1.7.7 52,438 4/29/2022
1.6.4 298,280 2/22/2022
1.5.12 25,748 2/15/2022
1.4.15 145,323 12/18/2021
1.3.42 127,809 11/9/2021
1.3.38-preview 175 11/9/2021
1.3.35-preview 10,157 10/20/2021
1.3.30-preview 1,666 10/15/2021
1.2.49 137,982 8/9/2021
1.2.49-preview 264 8/7/2021
1.2.36-preview 4,554 6/25/2021
1.2.35-preview 207 6/24/2021
1.2.28-preview 1,707 5/26/2021
1.2.27-preview 315 5/22/2021
1.2.26-preview.gd07edb4207 181 5/21/2021
1.1.5 216,607 4/30/2021
1.0.19 28,697 4/11/2021
1.0.16 1,025 4/11/2021
1.0.0-preview-02 2,091 3/26/2021
1.0.0-preview-01 50,905 12/24/2020
1.0.0-beta-11 35,609 10/26/2020
1.0.0-beta-10 26,834 9/15/2020