Show / Hide Table of Contents

Class IsNotTypeException

Exception thrown when the value is unexpectedly of the exact given type.

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

Constructors

| Improve this Doc View Source

IsNotTypeException(Type, Object)

Creates a new instance of the IsNotTypeException class.

Declaration
public IsNotTypeException(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