Table of Contents

Class FocusAsyncAssertJSInteropExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

Extensions methods for verifying FocusAsync(ElementReference) method calls.

public static class FocusAsyncAssertJSInteropExtensions
Inheritance
FocusAsyncAssertJSInteropExtensions
Inherited Members

Methods

VerifyFocusAsyncInvoke(BunitJSInterop, int, string?)

Verifies that the FocusAsync(ElementReference) method has been invoked calledTimes times.

public static IReadOnlyList<JSRuntimeInvocation> VerifyFocusAsyncInvoke(this BunitJSInterop handler, int calledTimes, string? userMessage = null)

Parameters

handler BunitJSInterop

Handler to verify against.

calledTimes int

The number of times the invocation is expected to have been called.

userMessage string

A custom user message to display if the assertion fails.

Returns

IReadOnlyList<JSRuntimeInvocation>

The JSRuntimeInvocation.

VerifyFocusAsyncInvoke(BunitJSInterop, string?)

Verifies that the FocusAsync(ElementReference) method has been invoked one time.

public static JSRuntimeInvocation VerifyFocusAsyncInvoke(this BunitJSInterop handler, string? userMessage = null)

Parameters

handler BunitJSInterop

Handler to verify against.

userMessage string

A custom user message to display if the assertion fails.

Returns

JSRuntimeInvocation

The JSRuntimeInvocation.

.NET Foundation

Supported by the .NET Foundation.