2 instantiations of IsTypeException
xunit.assert (2)
TypeAsserts.cs (2)
126
throw new
IsTypeException
(expectedType.FullName, null);
140
throw new
IsTypeException
(expectedTypeName, actualTypeName);
8 references to IsTypeException
Microsoft.DotNet.XUnitAssert.Tests (4)
TypeAssertsTests.cs (4)
193
Assert.Throws<
IsTypeException
>(
202
Assert.Throws<
IsTypeException
>(() => Assert.IsType<object>(null));
220
Assert.Throws<
IsTypeException
>(
229
Assert.Throws<
IsTypeException
>(() => Assert.IsType(typeof(object), null));
xunit.assert (4)
Sdk\Exceptions\IsAssignableFromException.cs (1)
20
/// Creates a new instance of the <see cref="
IsTypeException
"/> class.
Sdk\Exceptions\IsTypeException.cs (1)
18
/// Creates a new instance of the <see cref="
IsTypeException
"/> class.
TypeAsserts.cs (2)
98
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
114
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>