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