Table of Contents

Class FocusOnNavigateAssertJSInteropExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

Extensions methods for verifying FocusOnNavigate focus calls.

public static class FocusOnNavigateAssertJSInteropExtensions
Inheritance
FocusOnNavigateAssertJSInteropExtensions
Inherited Members

Methods

VerifyFocusOnNavigateInvoke(BunitJSInterop, int, string?)

Verifies that the FocusOnNavigate component has set focus calledTimes times.

public static IReadOnlyList<JSRuntimeInvocation> VerifyFocusOnNavigateInvoke(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.

VerifyFocusOnNavigateInvoke(BunitJSInterop, string?)

Verifies that the FocusOnNavigate component has set focus one time.

public static JSRuntimeInvocation VerifyFocusOnNavigateInvoke(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.