Class IsAssignableFromException
Exception thrown when the value is unexpectedly not of the given type or a derived type.
Inherited Members
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class IsAssignableFromException : AssertActualExpectedException
Constructors
| Improve this Doc View SourceIsAssignableFromException(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 |