0 out of 1 rated this helpful - Rate this topic

Assert.Equals Method

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Does it work?
This function seems to fail all the time:$0 $0 For example:$0 $0 Assert.Equals(2, 2);