Table of Contents

Class StrictEqualException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

Exception thrown when Assert.StrictEqual fails.

public class StrictEqualException : XunitException, ISerializable, IAssertionException
Inheritance
StrictEqualException
Implements
Inherited Members

Methods

ForEqualValues(string, string)

Creates a new instance of StrictEqualException to be thrown when two values are not strictly equal.

public static StrictEqualException ForEqualValues(string expected, string actual)

Parameters

expected string

The expected value

actual string

The actual value

Returns

StrictEqualException