Assert..::.AreEqual Method
This page is specific to:.NET Framework Version:2.03.54.0
Team Test API
Assert..::.AreEqual Method

Verifies that specified values are equal.

Overload List

  NameDescription
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(Object, Object) Verifies that two specified objects are equal. The assertion fails if the objects are not equal.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual<(Of <(T>)>)(T, T) Verifies that two specified generic type data are equal. The assertion fails if they are not equal.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(String, String, Boolean) Verifies that two specified strings are equal, ignoring case or not as specified. The assertion fails if they are not equal.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual<(Of <(T>)>)(T, T, String) Verifies that two specified generic type data are equal. The assertion fails if they are not equal. Displays a message if the assertion fails.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual<(Of <(T>)>)(T, T, String, array<Object>[]()[]) Verifies that two specified generic type data are equal. The assertion fails if they are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
ms244172.pubmethod(en-us,VS.90).gifms244172.static(en-us,VS.90).gifAreEqual(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.
Top
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View