Assert.AreEqual Method
Verifies that specified values are equal.
| Name | Description |
|---|---|
| Assert.AreEqual (Object, Object) | Verifies that two specified objects are equal. The assertion fails if the objects are not equal. |
| Assert.AreEqual (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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (String, String, Boolean) | Verifies that two specified strings are equal, ignoring case or not as specified. The assertion fails if they are not equal. |
| Assert.AreEqual (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. |
| Assert.AreEqual (Object, Object, String, 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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (Double, Double, Double, String, 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. |
| Assert.AreEqual (Single, Single, Single, String, 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. |
| Assert.AreEqual (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. |
| Assert.AreEqual (String, String, Boolean, String, 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. |
| Assert.AreEqual (String, String, Boolean, CultureInfo, String, 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. |
| Assert.AreEqual (T, T) | Verifies that two specified generic type data are equal. The assertion fails if they are not equal. |
| Assert.AreEqual (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. |
| Assert.AreEqual (T, T, String, 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. |