Show / Hide Table of Contents

Class IsAssignableFromException

Exception thrown when the value is unexpectedly not of the given type or a derived type.

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

Constructors

| Improve this Doc View Source

IsAssignableFromException(Type, Object)

Creates a new instance of the IsTypeException class.

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

The expected type

Object actual

The actual object value

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