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.
Install-Package bunit.core -Version 1.0.19
dotnet add package bunit.core --version 1.0.19
<PackageReference Include="bunit.core" Version="1.0.19" />
paket add bunit.core --version 1.0.19
#r "nuget: bunit.core, 1.0.19"
// Install bunit.core as a Cake Addin #addin nuget:?package=bunit.core&version=1.0.19 // Install bunit.core as a Cake Tool #tool nuget:?package=bunit.core&version=1.0.19
NuGet packages (4)
Showing the top 4 NuGet packages that depend on bunit.core:
bUnit.web is the web specific parts of bUnit, that enables you to easily test and verify the output of Blazor (web) component.
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.
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.
Extends Verify (https://github.com/VerifyTests/Verify) to allow Blazor component verification via BUnit.
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on bunit.core:
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 easily interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJSRuntime, and perform snapshot testing.
A powerful and customizable modal implementation for Blazor applications.
Lightweight Material Theme components for Blazor