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)

Syntax

'Declaration
Public Shared Function Equals ( _
    objA As Object, _
    objB As Object _
) As Boolean
public static bool Equals(
    Object objA,
    Object objB
)
public:
static bool Equals(
    Object^ objA, 
    Object^ objB
)
static member Equals : 
        objA:Object * 
        objB:Object -> bool 
public static function Equals(
    objA : Object, 
    objB : Object
) : boolean

Parameters

Return Value

Type: System.Boolean

Remarks

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

.NET Framework Security

See Also

Reference

Assert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

AreEqual