bunit.core 1.2.49-preview

This is a prerelease version of bunit.core.
There is a newer version of this package available.
See the version list below for details.
Install-Package bunit.core -Version 1.2.49-preview
dotnet add package bunit.core --version 1.2.49-preview
<PackageReference Include="bunit.core" Version="1.2.49-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add bunit.core --version 1.2.49-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: bunit.core, 1.2.49-preview"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install bunit.core as a Cake Addin
#addin nuget:?package=bunit.core&version=1.2.49-preview&prerelease

// Install bunit.core as a Cake Tool
#tool nuget:?package=bunit.core&version=1.2.49-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

bUnit.core is the base library that provides support for testing Blazor components. You need to install bUnit.web as well to test web-based Blazor components.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on bunit.core:

Package Downloads

bUnit.web is the web specific parts of bUnit, that enables you to easily test and verify the output of Blazor (web) component.


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.


bUnit.xunit is an xUnit extension for bUnit, that provides a way for xUnit to run bUnit's razor-based tests, as well as other helpful extensions to make the testing experience better if you use xUnit for writing your tests.


A JavaScript interop for Blazor used to detect the browser's screen size and perform Media Query tests. BlazorSize uses the DOM API `matchMedia` to test screen size. BlazorSize was created to allow Blazor components to render adaptively.


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

GitHub repositories (5)

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

Repository Stars
A library to provide access to local storage in Blazor applications
A powerful and customizable modal implementation for Blazor applications.
A library to provide access to session storage in Blazor applications
Blazor browser size interop for matchMedia and browser window size at runtime.
Lightweight Material Theme components for Blazor
Version Downloads Last updated
1.3.35-preview 191 10/20/2021
1.3.30-preview 314 10/15/2021
1.2.49 39,972 8/9/2021
1.2.49-preview 165 8/7/2021
1.2.36-preview 4,299 6/25/2021
1.2.35-preview 109 6/24/2021
1.2.28-preview 3,563 5/26/2021
1.2.27-preview 276 5/22/2021
1.2.26-preview.gd07edb4207 104 5/21/2021
1.1.5 262,556 4/30/2021
1.0.19 34,608 4/11/2021
1.0.16 598 4/11/2021
1.0.0-preview-02 5,697 3/26/2021
1.0.0-preview-01 85,576 12/24/2020
1.0.0-beta-11 51,934 10/26/2020
1.0.0-beta-10 35,803 9/15/2020