Table of Contents

Method NotSame

Namespace
Xunit
Assembly
xunit.v3.assert.dll

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

Exceptions

Thrown when the objects are the same instance