Show / Hide Table of Contents

Class SameException

Exception thrown when two object references are unexpectedly not the same instance.

Inheritance
Object
XunitException
AssertActualExpectedException
SameException
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 SameException : AssertActualExpectedException

Constructors

| Improve this Doc View Source

SameException(Object, Object)

Creates a new instance of the SameException class.

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

The expected object reference

Object actual

The actual object reference

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