Show / Hide Table of Contents

Class ContainsException

Exception thrown when a collection unexpectedly does not contain the expected value.

Inheritance
Object
XunitException
AssertActualExpectedException
ContainsException
Inherited Members
AssertActualExpectedException.Actual
AssertActualExpectedException.ActualTitle
AssertActualExpectedException.Expected
AssertActualExpectedException.ExpectedTitle
AssertActualExpectedException.Message
XunitException.StackTrace
XunitException.UserMessage
XunitException.ToString()
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class ContainsException : AssertActualExpectedException

Constructors

| Improve this Doc View Source

ContainsException(Object, Object)

Creates a new instance of the ContainsException class.

Declaration
public ContainsException(object expected, object actual)
Parameters
Type Name Description
Object expected

The expected object value

Object actual

The actual value

  • Improve this Doc
  • View Source
Back to top Generated by DocFX