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
objA
Type: ObjectAn object that can be cast to an Assert instance.
objB
Type: ObjectAn object that can be cast to an Assert instance.
Return Value
Type: Boolean
Remarks
To compare two instances of an object, use the AreEqual method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.