Table of Contents

Class ActualExpectedAssertException

Namespace
Bunit.Asserting
Assembly
Bunit.Core.dll

Represents a generic assert exception used when an actual result does not match an expected result.

public class ActualExpectedAssertException : Exception, ISerializable
Inheritance
ActualExpectedAssertException
Implements
Derived
Inherited Members
Extension Methods

Constructors

ActualExpectedAssertException(SerializationInfo, StreamingContext)

Initializes a new instance of the ActualExpectedAssertException class.

protected ActualExpectedAssertException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

ActualExpectedAssertException(string, string, string, string, string)

Initializes a new instance of the ActualExpectedAssertException class.

public ActualExpectedAssertException(string actual, string expected, string actualText, string expectedText, string message)

Parameters

actual string

The actual result.

expected string

The expected result.

actualText string

A text explaining the actual result.

expectedText string

A text explaining the expected result.

message string

An error message explaining the context of the assertion.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.