Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Assert.Equals Method (Object, Object)

 

Determines whether two objects are equal.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public static bool Equals(
	object objA,
	object objB
)

Parameters

objA
Type: System.Object

An object that can be cast to an Assert instance.

objB
Type: System.Object

An object that can be cast to an Assert instance.

Return Value

Type: System.Boolean

To compare two instances of an object, use the AreEqual method.

Return to top
Show: