3 instantiations of ThrowsException
xunit.assert (3)
Sdk\Exceptions\ThrowsException.cs (3)
42
new
ThrowsException
(
70
new
ThrowsException
(
89
new
ThrowsException
(
38 references to ThrowsException
Microsoft.DotNet.XUnitAssert.Tests (27)
ExceptionAssertsTests.cs (27)
29
Assert.IsType<
ThrowsException
>(ex);
54
Assert.IsType<
ThrowsException
>(ex);
72
Assert.IsType<
ThrowsException
>(ex);
112
Assert.IsType<
ThrowsException
>(ex);
137
Assert.IsType<
ThrowsException
>(ex);
155
Assert.IsType<
ThrowsException
>(ex);
185
Assert.IsType<
ThrowsException
>(ex);
210
Assert.IsType<
ThrowsException
>(ex);
228
Assert.IsType<
ThrowsException
>(ex);
265
Assert.IsType<
ThrowsException
>(ex);
290
Assert.IsType<
ThrowsException
>(ex);
308
Assert.IsType<
ThrowsException
>(ex);
337
Assert.IsType<
ThrowsException
>(ex);
361
Assert.IsType<
ThrowsException
>(ex);
379
Assert.IsType<
ThrowsException
>(ex);
397
Assert.IsType<
ThrowsException
>(ex);
423
Assert.IsType<
ThrowsException
>(ex);
447
Assert.IsType<
ThrowsException
>(ex);
465
Assert.IsType<
ThrowsException
>(ex);
483
Assert.IsType<
ThrowsException
>(ex);
701
Assert.IsType<
ThrowsException
>(ex);
726
Assert.IsType<
ThrowsException
>(ex);
744
Assert.IsType<
ThrowsException
>(ex);
770
Assert.IsType<
ThrowsException
>(ex);
794
Assert.IsType<
ThrowsException
>(ex);
812
Assert.IsType<
ThrowsException
>(ex);
830
Assert.IsType<
ThrowsException
>(ex);
xunit.assert (11)
ExceptionAsserts.cs (5)
34
throw
ThrowsException
.ForNoException(exceptionType);
37
throw
ThrowsException
.ForIncorrectExceptionType(exceptionType, exception);
136
throw
ThrowsException
.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName);
161
throw
ThrowsException
.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName);
286
throw
ThrowsException
.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName);
Sdk\Exceptions\ThrowsException.cs (6)
34
/// Creates a new instance of the <see cref="
ThrowsException
"/> class to be thrown when
39
public static
ThrowsException
ForIncorrectExceptionType(
55
/// Creates a new instance of the <see cref="
ThrowsException
"/> class to be thrown when
61
public static
ThrowsException
ForIncorrectParameterName(
84
/// Creates a new instance of the <see cref="
ThrowsException
"/> class to be thrown when
88
public static
ThrowsException
ForNoException(Type expected) =>