bunit 1.26.19-preview

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.26.19-preview
                    
NuGet\Install-Package bunit -Version 1.26.19-preview
                    
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.26.19-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="bunit" Version="1.26.19-preview" />
                    
Directory.Packages.props
<PackageReference Include="bunit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add bunit --version 1.26.19-preview
                    
#r "nuget: bunit, 1.26.19-preview"
                    
#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.
#:package bunit@1.26.19-preview
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=bunit&version=1.26.19-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=bunit&version=1.26.19-preview&prerelease
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on bunit:

Package Downloads
Verify.Bunit

Extends Verify (https://github.com/VerifyTests/Verify) to allow Blazor component verification via BUnit.

FluentAssertions.BUnit

Extension methods that provide fluent assertions on top of BUnit.

bunit.web.query

bunit.web.query is an experimental package that provides an bUnit version of the https://testing-library.com/ APIs.

Blazorise.Tests.bUnit

Blazorise is a component library built on top of Blazor and CSS frameworks like Bootstrap, Bulma and Material.

StoicDreams.TestFramework.Blazor

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

GitHub repositories (1)

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

Repository Stars
MudBlazor/MudBlazor
Blazor Component Library based on Material Design principles. Do more with Blazor, utilizing CSS and keeping JavaScript to a bare minimum.
Version Downloads Last Updated
2.7.2 140,506 3/31/2026
2.7.1-preview 61 3/31/2026
2.6.2 216,686 2/27/2026
2.5.3 360,656 1/8/2026
2.4.2 89,131 12/21/2025
2.3.4 14,757 12/18/2025
2.3.3-preview 462 12/16/2025
2.2.2 77,628 12/8/2025
2.1.1 87,890 11/21/2025
2.0.66 74,080 11/11/2025
2.0.64-preview 2,652 10/31/2025
2.0.62-preview 1,468 10/19/2025
2.0.57-preview 359 10/17/2025
2.0.55-preview 1,816 10/7/2025
2.0.50-preview 6,512 9/12/2025
2.0.49-preview 764 8/30/2025
2.0.47-preview 752 8/30/2025
2.0.41-preview 19,302 6/27/2025
1.40.0 1,119,643 6/14/2025
1.26.19-preview 1,573 11/24/2023
Loading failed