Class EquivalentException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Equivalent fails.
public class EquivalentException : XunitException, ISerializable, IAssertionException
- Inheritance
-
EquivalentException
- Implements
- Inherited Members
Methods
- ForCircularReference(string)
Creates a new instance of EquivalentException which shows a message that indicates a circular reference was discovered.
- ForExceededDepth(int, string)
Creates a new instance of EquivalentException which shows a message that indicates that the maximum comparison depth was exceeded.
- ForExtraCollectionValue(IEnumerable<object?>, IEnumerable<object?>, IEnumerable<object?>, string)
Creates a new instance of EquivalentException which shows a message that indicates that
actualcontained one or more values that were not specified inexpected.
- ForGroupingWithMismatchedValues(object?, object?, string)
Creates a new instance of EquivalentException which shows a message that indicates that the fault comes from an individual value mismatch one of the members.
- ForMemberListMismatch(IEnumerable<string>, IEnumerable<string>, string)
Creates a new instance of EquivalentException which shows a message that indicates that the list of available members does not match.
- ForMemberValueMismatch(object?, object?, string, Exception?)
Creates a new instance of EquivalentException which shows a message that indicates that the fault comes from an individual value mismatch one of the members.
- ForMismatchedTypes(Type, Type, string)
Creates a new instance of EquivalentException which shows a message that indicates that
expectedTypedoes not matchactualType. This is typically only used in special case comparison where it would be known that general comparison would fail for other reasons, like two objects derived from FileSystemInfo with different concrete types.
- ForMissingCollectionValue(object?, IEnumerable<object?>, string)
Creates a new instance of EquivalentException which shows a message that indicates a value was missing from the
actualcollection.