3 instantiations of ThrowsException
xunit.assert (3)
Sdk\Exceptions\ThrowsException.cs (3)
47 new ThrowsException( 75 new ThrowsException( 94 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)
42 throw ThrowsException.ForNoException(exceptionType); 45 throw ThrowsException.ForIncorrectExceptionType(exceptionType, exception); 144 throw ThrowsException.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName); 169 throw ThrowsException.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName); 294 throw ThrowsException.ForIncorrectParameterName(typeof(T), paramName, ex.ParamName);
Sdk\Exceptions\ThrowsException.cs (6)
39 /// Creates a new instance of the <see cref="ThrowsException"/> class to be thrown when 44 public static ThrowsException ForIncorrectExceptionType( 60 /// Creates a new instance of the <see cref="ThrowsException"/> class to be thrown when 66 public static ThrowsException ForIncorrectParameterName( 89 /// Creates a new instance of the <see cref="ThrowsException"/> class to be thrown when 93 public static ThrowsException ForNoException(Type expected) =>