Class EqualException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Equal fails.
public class EqualException : XunitException, ISerializable, IAssertionException
- Inheritance
-
EqualException
- Implements
- Inherited Members
Methods
- ForMismatchedCollections(int?, string, int?, string?, string, int?, string?, string?)
Creates a new instance of EqualException to be thrown when two collections are not equal.
- ForMismatchedCollectionsWithError(int?, string, int?, string?, string, int?, string?, Exception?, string?)
Creates a new instance of EqualException to be thrown when two collections are not equal, and an error has occurred during comparison.
- ForMismatchedStrings(string?, string?, int, int)
Creates a new instance of EqualException to be thrown when two string values are not equal.
- ForMismatchedValues(object?, object?, string?)
Creates a new instance of EqualException to be thrown when two values are not equal. This may be simple values (like intrinsics) or complex values (like classes or structs).
- ForMismatchedValuesWithError(object?, object?, Exception?, string?)
Creates a new instance of EqualException to be thrown when two values are not equal. This may be simple values (like intrinsics) or complex values (like classes or structs). Used when an error has occurred during comparison.