1 instantiation of IsAssignableFromException
xunit.assert (1)
TypeAsserts.cs (1)
56
throw new
IsAssignableFromException
(expectedType, @object);
8 references to IsAssignableFromException
Microsoft.DotNet.XUnitAssert.Tests (6)
TypeAssertsTests.cs (6)
12
Assert.Throws<
IsAssignableFromException
>(() => Assert.IsAssignableFrom<object>(null));
52
var
exception =
53
Assert.Throws<
IsAssignableFromException
>(
66
Assert.Throws<
IsAssignableFromException
>(() => Assert.IsAssignableFrom(typeof(object), null));
106
var
exception =
107
Assert.Throws<
IsAssignableFromException
>(
xunit.assert (2)
TypeAsserts.cs (2)
28
/// <exception cref="
IsAssignableFromException
">Thrown when the object is not the given type</exception>
44
/// <exception cref="
IsAssignableFromException
">Thrown when the object is not the given type</exception>