Table of Contents

Method ForFailure

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

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