Table of Contents

Namespace Bunit

Classes

BunitContext

A test context is a factory that makes it possible to create components under tests.

BunitJSInterop

Represents an bUnit's implementation of Blazor's JSInterop.

BunitJSInteropSetupExtensions

Helper methods for creating invocation handlers and adding the to a BunitJSInterop.

BunitJSModuleInterop

Represents a bUnit JSInterop module.

BunitServiceProvider

Represents a IServiceProvider and IServiceCollection as a single type used for test purposes.

CompareToExtensions

Extension methods that allows different rendered fragments to be compared to others or strings.

ComponentFactoryCollection

Represents a collection of IComponentFactory.

ComponentFactoryCollectionExtensions

Extension methods for using component doubles.

ComponentParameterCollectionBuilder<TComponent>

A ComponentParameterCollection builder for a specific TComponent component under test.

ElementNotFoundException

Represents a failure to find an element in the searched target using a CSS selector.

ElementRemovedFromDomException

Represents an exception that is thrown when trying to access an element that was previously found in the DOM.

EventHandlerDispatchExtensions

Input event dispatch helper extension methods.

FocusAsyncAssertJSInteropExtensions

Extensions methods for verifying FocusAsync(ElementReference) method calls.

FocusOnNavigateAssertJSInteropExtensions

Extensions methods for verifying FocusOnNavigate focus calls.

HtmlEqualException

Represents an differences between pieces of markup.

InputFileContent

Represents a file which can be uploaded.

InputFileExtensions

Extensions for the InputFile component.

JSInvokeCountExpectedException

Represents a number of unexpected invocation to a BunitJSInterop.

JSRuntimeAssertExtensions

Assert extensions for JSRuntimeMock.

JSRuntimeInvocationDictionary

Represents a dictionary of JSRuntimeInvocation, keyed by their identifier.

JSRuntimeInvocationHandler

Represents a handler for an invocation of a JavaScript function which returns nothing, with specific arguments.

JSRuntimeInvocationHandlerBase<TResult>

Represents an invocation handler for JSRuntimeInvocation instances.

JSRuntimeInvocationHandler<TResult>

Represents a handler for an invocation of a JavaScript function with specific arguments and returns TResult.

JSRuntimeInvocationNotSetException

Exception used to indicate that an invocation was received by a JSRuntime invocation handler, but the handler was not configured with a result (via SetResult, SetVoidResult, SetCanceled, or SetException). This causes the invocation to hang indefinitely.

JSRuntimeUnhandledInvocationException

Exception use to indicate that an invocation was received by the BunitJSInterop running in Strict mode, which didn't contain a matching invocation handler.

Key

Representation of keyboard key that can be argument of keyboard events.

MarkupMatchesAssertExtensions

Assert helpers for comparing markup.

MissingEventHandlerException

Represents an exception that is thrown when triggering an event handler failed because it wasn't available on the targeted AngleSharp.Dom.IElement.

RenderedComponentExtensions

Helper methods for querying IRenderedComponent<TComponent>.

RenderedComponentInvokeAsyncExtensions

InvokeAsync extensions methods on IRenderedComponent<TComponent>.

RenderedComponentRenderExtensions

Re-render extension methods, optionally with new parameters, for RenderedComponent<TComponent>.

RenderedComponentWaitForHelperExtensions

Provides extension methods for waiting on components within a rendered Blazor component.

StubComponentFactoryCollectionExtensions

Extension methods for using component doubles.

TestContext

A test context is a factory that makes it possible to create components under tests.

TriggerEventDispatchExtensions

General event dispatch helper extension methods.

Structs

JSRuntimeInvocation

Represents an invocation of JavaScript via the JSRuntime Mock.

Interfaces

IComponentFactory

Represents a component factory.

IRenderedComponent<TComponent>

Represents a rendered component.

Enums

JSRuntimeMode

The execution mode of the BunitJSInterop.

Delegates

InvocationMatcher

Represents a invocation matcher / predicate, that is used to determine if a JSRuntimeInvocationHandler<TResult> matches a specific JSRuntimeInvocation.

.NET Foundation

Supported by the .NET Foundation.