Table of Contents

Class JSInvokeCountExpectedException

Namespace
Bunit
Assembly
Bunit.Web.dll

Represents a number of unexpected invocation to a BunitJSInterop.

public sealed class JSInvokeCountExpectedException : Exception, ISerializable
Inheritance
JSInvokeCountExpectedException
Implements
Inherited Members
Extension Methods

Constructors

JSInvokeCountExpectedException(string, int, int, string, string?)

Initializes a new instance of the JSInvokeCountExpectedException class.

public JSInvokeCountExpectedException(string identifier, int expectedCount, int actualCount, string assertMethod, string? userMessage = null)

Parameters

identifier string
expectedCount int
actualCount int
assertMethod string
userMessage string

Properties

ActualInvocationCount

Gets the actual invocation count.

public int ActualInvocationCount { get; }

Property Value

int

ExpectedInvocationCount

Gets the expected invocation count.

public int ExpectedInvocationCount { get; }

Property Value

int

Identifier

Gets the identifier.

public string Identifier { get; }

Property Value

string

Methods

GetObjectData(SerializationInfo, StreamingContext)

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.