3 instantiations of RaisesException
xunit.assert (3)
Sdk\Exceptions\RaisesException.cs (3)
33 new RaisesException( 49 new RaisesException("Assert.Raises() Failure: No event was raised"); 57 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)
30 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 37 throw RaisesException.ForNoEvent(); 48 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 57 throw RaisesException.ForNoEvent(typeof(T)); 60 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 73 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 82 throw RaisesException.ForNoEvent(typeof(T)); 85 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 99 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 113 throw RaisesException.ForNoEvent(typeof(T)); 116 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 128 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 150 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 172 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 193 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 215 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 237 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 258 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 265 throw RaisesException.ForNoEvent(); 276 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 285 throw RaisesException.ForNoEvent(typeof(T)); 288 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType()); 301 /// <exception cref="RaisesException">Thrown when the expected event was not raised.</exception> 310 throw RaisesException.ForNoEvent(typeof(T)); 313 throw RaisesException.ForIncorrectType(typeof(T), raisedEvent.Arguments.GetType());
Sdk\Exceptions\RaisesException.cs (6)
25 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 30 public static RaisesException ForIncorrectType( 45 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 48 public static RaisesException ForNoEvent() => 52 /// Creates a new instance of the <see cref="RaisesException" /> class to be thrown when 56 public static RaisesException ForNoEvent(Type expected) =>