Assert.

ReferenceEquals(object, object) Method

Summary

The ReferenceEquals method is overridden to throw a System.InvalidOperationException. This ensures that there there is no mistake in calling this function rather than Assert.AreSame(object, object).
Namespace
TCLite
Containing Type
Assert

Syntax

[EditorBrowsable(EditorBrowsableState.Never)]
public static bool ReferenceEquals(object a, object b)

Attributes

Type Description
EditorBrowsableAttribute

Parameters

Name Type Description
a object
b object

Return Value

Type Description
bool