2 instantiations of NotRaisesException
xunit.assert (2)
Sdk\Exceptions\NotRaisesException.cs (2)
32 new NotRaisesException("Assert.NotRaisedAny() Failure: An unexpected event was raised"); 40 new NotRaisesException(
22 references to NotRaisesException
Microsoft.DotNet.XUnitAssert.Tests (6)
Asserts\EventAssertsTests.cs (6)
700 Assert.IsType<NotRaisesException>(ex); 741 Assert.IsType<NotRaisesException>(ex); 781 Assert.IsType<NotRaisesException>(ex); 821 Assert.IsType<NotRaisesException>(ex); 860 Assert.IsType<NotRaisesException>(ex); 896 Assert.IsType<NotRaisesException>(ex);
xunit.assert (16)
EventAsserts.cs (12)
473 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 484 throw NotRaisesException.ForUnexpectedEvent(); 494 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 505 throw NotRaisesException.ForUnexpectedEvent(typeof(T)); 515 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 526 throw NotRaisesException.ForUnexpectedEvent(typeof(T)); 535 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 546 throw NotRaisesException.ForUnexpectedEvent(); 556 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 566 throw NotRaisesException.ForUnexpectedEvent(typeof(T)); 576 /// <exception cref="NotRaisesException">Thrown when an unexpected event was raised.</exception> 587 throw NotRaisesException.ForUnexpectedEvent(typeof(T));
Sdk\Exceptions\NotRaisesException.cs (4)
28 /// Creates a new instance of the <see cref="NotRaisesException" /> class to be thrown when 31 public static NotRaisesException ForUnexpectedEvent() => 35 /// Creates a new instance of the <see cref="NotRaisesException" /> class to be thrown when 39 public static NotRaisesException ForUnexpectedEvent(Type unexpected) =>