bunit 1.2.36-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.2.36-preview
                    
NuGet\Install-Package bunit -Version 1.2.36-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.2.36-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="bunit" Version="1.2.36-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.2.36-preview
                    
#r "nuget: bunit, 1.2.36-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.2.36-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.2.36-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=bunit&version=1.2.36-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.

Blazored.Toast.TestExtensions

A testing library to provide helper extensions for Blazored.Toast

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.

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

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

Repository Stars
MudBlazor/MudBlazor
Blazor Component Library based on Material Design principles with an emphasis on ease of use and extensibility
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
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
Blazored/Toast
A JavaScript free toast library for Blazor and Razor Component applications
Blazored/FluentValidation
A library for using FluentValidation with Blazor
CodeBeamOrg/CodeBeam.MudBlazor.Extensions
Useful third party extension components for MudBlazor, from the contributors.
LumexUI/lumexui
🚀 A versatile Blazor UI library built using Tailwind CSS.
jsakamoto/BlazingStory
The clone of "Storybook" for Blazor, a frontend workshop for building UI components and pages in isolation.
linkdotnet/Blog
A blog (engine) completely written in C# and Blazor. It aims to be a simple use and easy to extend platform. Blogposts are written in Markdown and are rendered to HTML. This gives all the flexibility needed to express yourself but also have an easy way of creating posts in the first place.
Version Downloads Last Updated
2.5.3 152,261 1/8/2026
2.4.2 58,913 12/21/2025
2.3.4 11,849 12/18/2025
2.3.3-preview 394 12/16/2025
2.2.2 61,197 12/8/2025
2.1.1 69,312 11/21/2025
2.0.66 52,620 11/11/2025
2.0.64-preview 2,235 10/31/2025
2.0.62-preview 1,440 10/19/2025
2.0.57-preview 287 10/17/2025
2.0.55-preview 1,264 10/7/2025
2.0.50-preview 6,457 9/12/2025
2.0.49-preview 735 8/30/2025
2.0.47-preview 550 8/30/2025
2.0.41-preview 15,833 6/27/2025
2.0.36-preview 85,655 2/21/2025
1.40.0 887,458 6/14/2025
1.39.5 441,175 4/4/2025
1.38.5 624,830 1/12/2025
1.2.36-preview 6,843 6/25/2021
Loading failed