Table of Contents

Class IdentityAsserts

Namespace
Asserts
Assembly
xunit.v3.assert.dll
public class IdentityAsserts
Inheritance
IdentityAsserts
Inherited Members

Methods

NotSame(object?, object?)

Verifies that two objects are not the same instance.

public static void NotSame(object? expected, object? actual)

Parameters

expected object

The expected object instance

actual object

The actual object instance

Examples

Add an example for this method ?

Contribution guide.

Exceptions

NotSameException

Thrown when the objects are the same instance

Same(object?, object?)

Verifies that two objects are the same instance.

public static void Same(object? expected, object? actual)

Parameters

expected object

The expected object instance

actual object

The actual object instance

Examples

Add an example for this method ?

Contribution guide.

Exceptions

SameException

Thrown when the objects are not the same instance