Table of Contents

Class NotStrictEqualException

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

Exception thrown when Assert.NotStrictEqual fails.

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

Methods

ForEqualValues(string, string)

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

public static NotStrictEqualException ForEqualValues(string expected, string actual)

Parameters

expected string

The expected value

actual string

The actual value

Returns

NotStrictEqualException