|
#if XUNIT_NULLABLE
#nullable enable
#endif
namespace Xunit.Sdk
{
/// <summary>
/// Exception thrown when a collection unexpectedly contains the expected value.
/// </summary>
#if XUNIT_VISIBILITY_INTERNAL
internal
#else
public
#endif
class DoesNotContainException : AssertActualExpectedException
{
/// <summary>
/// Creates a new instance of the <see cref="DoesNotContainException"/> class.
/// </summary>
/// <param name="expected">The expected object value</param>
/// <param name="actual">The actual value</param>
public DoesNotContainException(
#if XUNIT_NULLABLE
object? expected,
object? actual) :
#else
object expected,
object actual) :
#endif
base(expected, actual, "Assert.DoesNotContain() Failure", "Found", "In value")
{ }
}
}
|