Namespace Xunit.Sdk
Classes
- AllException
Exception thrown when Assert.All fails.
- ArgumentFormatter
Formats value for display in assertion messages and data-driven test display names.
- AssertEqualityResult
Indicates the result of comparing two values for equality. Includes success/failure information, as well as indices where the values differ, if the values are indexed (e.g., collections or strings).
- CollectionException
Exception thrown when Assert.Collection fails.
- CollectionTracker
Base class for generic CollectionTracker<T>, which also includes some public static functionality.
- CollectionTrackerExtensions
Extension methods related to CollectionTracker<T>.
- CollectionTracker<T>
A utility class that can be used to wrap enumerables to prevent double enumeration. It offers the ability to safely print parts of the collection when failures are encountered, as well as some static versions of the printing functionality.
- ContainsException
Exception thrown when Assert.Contains fails.
- DistinctException
Exception thrown when Assert.Distinct fails.
- DoesNotContainException
Exception thrown when Assert.DoesNotContain fails.
- DoesNotMatchException
Exception thrown when Assert.DoesNotMatch fails.
- EmptyException
Exception thrown when Assert.Empty fails.
- EndsWithException
Exception thrown when Assert.EndsWith fails.
- EqualException
Exception thrown when Assert.Equal fails.
- EquivalentException
Exception thrown when Assert.Equivalent fails.
- FailException
Exception thrown when Assert.Fail is called.
- FalseException
Exception thrown when Assert.False fails.
- IAssertEqualityComparerExtensions
Extension methods for IAssertEqualityComparer<T>
- InRangeException
Exception thrown when Assert.InRange fails.
- IsAssignableFromException
Exception thrown when Assert.IsAssignableFrom fails.
- IsNotAssignableFromException
Exception thrown when Assert.IsNotAssignableFrom fails.
- IsNotTypeException
Exception thrown when Assert.IsNotType fails.
- IsTypeException
Exception thrown when Assert.IsType fails.
- MatchesException
Exception thrown when Assert.Matches fails.
- MultipleException
Exception thrown when Assert.Multiple fails w/ multiple errors (when a single error occurs, it is thrown directly).
- NotEmptyException
Exception thrown when Assert.NotEmpty fails.
- NotEqualException
Exception thrown when Assert.NotEqual fails.
- NotInRangeException
Exception thrown when Assert.NotInRange fails.
- NotNullException
Exception thrown when Assert.NotNull fails.
- NotSameException
Exception thrown when Assert.NotSame fails.
- NotStrictEqualException
Exception thrown when Assert.NotStrictEqual fails.
- NullException
Exception thrown when Assert.Null fails.
- ProperSubsetException
Exception thrown when Assert.ProperSubset fails.
- ProperSupersetException
Exception thrown when Assert.ProperSuperset fails.
- PropertyChangedException
Exception thrown when Assert.PropertyChanged fails.
- RaisesAnyException
Exception thrown when Assert.RaisesAny fails.
- RaisesException
Exception thrown when Assert.Raises fails.
- SameException
Exception thrown when Assert.Same fails.
- SingleException
Exception thrown when Assert.Single fails.
- SkipException
Exception thrown when Assert.Skip is called.
- StartsWithException
Exception thrown when Assert.StartsWith fails.
- StrictEqualException
Exception thrown when Assert.StrictEqual fails.
- StringAssertEqualityComparer
This static class offers equivalence comparisons for string values
- SubsetException
Exception thrown when Assert.Subset fails.
- SupersetException
Exception thrown when Assert.Superset fails.
- ThrowsAnyException
Exception thrown when Assert.ThrowsAny fails.
- ThrowsException
Exception thrown when Assert.Throws fails.
- TrueException
Exception thrown when Assert.True fails.
- XunitException
The base assert exception class. It marks itself with IAssertionException which is how the framework differentiates between assertion fails and general exceptions.
Interfaces
- IAssertEqualityComparer<T>
Represents a specialized version of IEqualityComparer<T> that returns information useful when formatting results for assertion failures.
- IAssertionException
This is a marker interface implemented by all built-in assertion exceptions so that test failures can be marked with Assertion.