3 instantiations of RaisesException
xunit.assert (3)
Sdk\Exceptions\RaisesException.cs (3)
38 new RaisesException( 54 new RaisesException("Assert.Raises() Failure: No event was raised"); 62 new RaisesException(
41 references to RaisesException
Microsoft.DotNet.XUnitAssert.Tests (10)
EventAssertsTests.cs (10)
23 Assert.IsType<RaisesException>(ex); 45 Assert.IsType<RaisesException>(ex); 80 Assert.IsType<RaisesException>(ex); 105 Assert.IsType<RaisesException>(ex); 145 Assert.IsType<RaisesException>(ex); 538 Assert.IsType<RaisesException>(ex); 560 Assert.IsType<RaisesException>(ex); 595 Assert.IsType<RaisesException>(ex); 620 Assert.IsType<RaisesException>(ex); 660 Assert.IsType<RaisesException>(ex);
xunit.assert (31)
EventAsserts.cs (25)
41 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 48 throw RaisesException.ForNoEvent(); 59 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 68 throw RaisesException.ForNoEvent(typeof(T)); 71 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 84 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 93 throw RaisesException.ForNoEvent(typeof(T)); 96 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 110 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 124 throw RaisesException.ForNoEvent(typeof(T)); 127 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 139 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 161 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 183 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 204 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 226 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 248 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 269 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 276 throw RaisesException.ForNoEvent(); 287 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 296 throw RaisesException.ForNoEvent(typeof(T)); 299 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 312 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 321 throw RaisesException.ForNoEvent(typeof(T)); 324 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType());
Sdk\Exceptions\RaisesException.cs (6)
30 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 35 public static RaisesException ForIncorrectType( 50 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 53 public static RaisesException ForNoEvent() => 57 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 61 public static RaisesException ForNoEvent(Type expected) =>