Table of Contents

Method Same

Namespace
Xunit
Assembly
xunit.v3.assert.dll

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

Exceptions

Thrown when the objects are not the same instance