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::AreEqual Method

 

Verifies that specified values are equal.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Double, Double, Double)

Verifies that two specified doubles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Double, Double, Double, String^)

Verifies that two specified doubles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Double, Double, Double, String^, array<Object^>^)

Verifies that two specified doubles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Object^, Object^)

Verifies that two specified objects are equal. The assertion fails if the objects are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Object^, Object^, String^)

Verifies that two specified objects are equal. The assertion fails if the objects are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Object^, Object^, String^, array<Object^>^)

Verifies that two specified objects are equal. The assertion fails if the objects are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Single, Single, Single)

Verifies that two specified singles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Single, Single, Single, String^)

Verifies that two specified singles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(Single, Single, Single, String^, array<Object^>^)

Verifies that two specified singles are equal, or within the specified accuracy of each other. The assertion fails if they are not within the specified accuracy of each other. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean)

Verifies that two specified strings are equal, ignoring case or not as specified. The assertion fails if they are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean, CultureInfo^)

Verifies that two specified strings are equal, ignoring case or not as specified, and using the culture info specified. The assertion fails if they are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean, CultureInfo^, String^)

Verifies that two specified strings are equal, ignoring case or not as specified, and using the culture info specified. The assertion fails if they are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean, CultureInfo^, String^, array<Object^>^)

Verifies that two specified strings are equal, ignoring case or not as specified, and using the culture info specified. The assertion fails if they are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean, String^)

Verifies that two specified strings are equal, ignoring case or not as specified. The assertion fails if they are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(String^, String^, Boolean, String^, array<Object^>^)

Verifies that two specified strings are equal, ignoring case or not as specified. The assertion fails if they are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual<T>(T, T)

Verifies that two specified generic type data are equal by using the equality operator. The assertion fails if they are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual<T>(T, T, String^)

Verifies that two specified generic type data are equal by using the equality operator. The assertion fails if they are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual<T>(T, T, String^, array<Object^>^)

Verifies that two specified generic type data are equal by using the equality operator. The assertion fails if they are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

Return to top
Show: