bunit 1.26.20-preview
Prefix ReservedSee the version list below for details.
dotnet add package bunit --version 1.26.20-preview
NuGet\Install-Package bunit -Version 1.26.20-preview
<PackageReference Include="bunit" Version="1.26.20-preview" />
<PackageVersion Include="bunit" Version="1.26.20-preview" />
<PackageReference Include="bunit" />
paket add bunit --version 1.26.20-preview
#r "nuget: bunit, 1.26.20-preview"
#:package bunit@1.26.20-preview
#addin nuget:?package=bunit&version=1.26.20-preview&prerelease
#tool nuget:?package=bunit&version=1.26.20-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.20-preview)
- bunit.web (>= 1.26.20-preview)
-
net5.0
- bunit.core (>= 1.26.20-preview)
- bunit.web (>= 1.26.20-preview)
-
net6.0
- bunit.core (>= 1.26.20-preview)
- bunit.web (>= 1.26.20-preview)
-
net7.0
- bunit.core (>= 1.26.20-preview)
- bunit.web (>= 1.26.20-preview)
-
net8.0
- bunit.core (>= 1.26.20-preview)
- bunit.web (>= 1.26.20-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 (14)
Showing the top 14 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.
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
|
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
|
|
|
dotnetcore/BootstrapBlazor
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
|
|
|
Megabit/Blazorise
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
|
|
|
Blazor-Diagrams/Blazor.Diagrams
A fully customizable and extensible all-purpose diagrams library for Blazor
|
|
|
masastack/MASA.Blazor
Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
|
|
|
abpframework/abp-samples
Sample solutions built with the ABP Framework
|
|
|
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
|
|
|
runceel/ReactiveProperty
ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. Target frameworks are .NET 6+, .NET Framework 4.7.2 and .NET Standard 2.0.
|
|
|
Azure-Samples/azure-search-openai-demo-csharp
A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
|
|
|
meziantou/Meziantou.Framework
|
|
|
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
|
| 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.20-preview | 1,635 | 11/24/2023 |