bunit 1.26.19-preview
Prefix ReservedSee the version list below for details.
dotnet add package bunit --version 1.26.19-preview
NuGet\Install-Package bunit -Version 1.26.19-preview
<PackageReference Include="bunit" Version="1.26.19-preview" />
<PackageVersion Include="bunit" Version="1.26.19-preview" />
<PackageReference Include="bunit" />
paket add bunit --version 1.26.19-preview
#r "nuget: bunit, 1.26.19-preview"
#:package bunit@1.26.19-preview
#addin nuget:?package=bunit&version=1.26.19-preview&prerelease
#tool nuget:?package=bunit&version=1.26.19-preview&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, and inject services.
bUnit also includes a complete fake implementation of Blazor's authentication and authorization logic, navigation manager, and
JSInterop.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- bunit.core (>= 1.26.19-preview)
- bunit.web (>= 1.26.19-preview)
-
net5.0
- bunit.core (>= 1.26.19-preview)
- bunit.web (>= 1.26.19-preview)
-
net6.0
- bunit.core (>= 1.26.19-preview)
- bunit.web (>= 1.26.19-preview)
-
net7.0
- bunit.core (>= 1.26.19-preview)
- bunit.web (>= 1.26.19-preview)
-
net8.0
- bunit.core (>= 1.26.19-preview)
- bunit.web (>= 1.26.19-preview)
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 |