Table of Contents

Class SameException

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

Exception thrown when Assert.Same fails.

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

Methods

ForFailure(string, string)

Creates a new instance of the SameException class to be thrown when two values are not the same instance.

public static SameException ForFailure(string expected, string actual)

Parameters

expected string

The expected value

actual string

The actual value

Returns

SameException