1 instantiation of IsTypeException
xunit.assert (1)
Sdk\Exceptions\IsTypeException.cs (1)
35
new
IsTypeException
(
22 references to IsTypeException
Microsoft.DotNet.XUnitAssert.Tests (8)
Asserts\TypeAssertsTests.cs (8)
501
Assert.IsType<
IsTypeException
>(result);
537
Assert.IsType<
IsTypeException
>(result);
554
Assert.IsType<
IsTypeException
>(result);
607
Assert.IsType<
IsTypeException
>(result);
634
Assert.IsType<
IsTypeException
>(result);
672
Assert.IsType<
IsTypeException
>(result);
689
Assert.IsType<
IsTypeException
>(result);
740
Assert.IsType<
IsTypeException
>(result);
xunit.assert (14)
Sdk\Exceptions\IsAssignableFromException.cs (1)
31
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown when
Sdk\Exceptions\IsTypeException.cs (5)
27
static
IsTypeException
Create(
48
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown
53
public static
IsTypeException
ForIncompatibleType(
63
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown
68
public static
IsTypeException
ForMismatchedType(
TypeAsserts.cs (8)
186
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
209
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
230
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
247
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
262
throw
IsTypeException
.ForMismatchedType(ArgumentFormatter.Format(expectedType), null);
264
throw
IsTypeException
.ForIncompatibleType(ArgumentFormatter.Format(expectedType), null);
285
throw
IsTypeException
.ForMismatchedType(expectedTypeName, actualTypeName);
287
throw
IsTypeException
.ForIncompatibleType(expectedTypeName, actualTypeName);