1 instantiation of IsTypeException
xunit.assert (1)
Sdk\Exceptions\IsTypeException.cs (1)
37
new
IsTypeException
(
18 references to IsTypeException
Microsoft.DotNet.XUnitAssert.Tests (4)
TypeAssertsTests.cs (4)
368
Assert.IsType<
IsTypeException
>(result);
404
Assert.IsType<
IsTypeException
>(result);
430
Assert.IsType<
IsTypeException
>(result);
466
Assert.IsType<
IsTypeException
>(result);
xunit.assert (14)
Sdk\Exceptions\IsAssignableFromException.cs (1)
33
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown when
Sdk\Exceptions\IsTypeException.cs (5)
29
static
IsTypeException
Create(
50
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown
55
public static
IsTypeException
ForIncompatibleType(
65
/// Creates a new instance of the <see cref="
IsTypeException
"/> class to be thrown
70
public static
IsTypeException
ForMismatchedType(
TypeAsserts.cs (8)
194
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
217
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
238
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
255
/// <exception cref="
IsTypeException
">Thrown when the object is not the given type</exception>
270
throw
IsTypeException
.ForMismatchedType(ArgumentFormatter.Format(expectedType), null);
272
throw
IsTypeException
.ForIncompatibleType(ArgumentFormatter.Format(expectedType), null);
293
throw
IsTypeException
.ForMismatchedType(expectedTypeName, actualTypeName);
295
throw
IsTypeException
.ForIncompatibleType(expectedTypeName, actualTypeName);