1 instantiation of RaisesAnyException
xunit.assert (1)
Sdk\Exceptions\RaisesAnyException.cs (1)
33 new RaisesAnyException(
14 references to RaisesAnyException
Microsoft.DotNet.XUnitAssert.Tests (6)
Asserts\EventAssertsTests.cs (6)
188 Assert.IsType<RaisesAnyException>(ex); 247 Assert.IsType<RaisesAnyException>(ex); 269 Assert.IsType<RaisesAnyException>(ex); 362 Assert.IsType<RaisesAnyException>(ex); 421 Assert.IsType<RaisesAnyException>(ex); 443 Assert.IsType<RaisesAnyException>(ex);
xunit.assert (8)
EventAsserts.cs (6)
124 RaisesInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(EventArgs)); 139 RaisesInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(T)); 154 RaisesInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(T)); 168 await RaisesAsyncInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(EventArgs)); 183 await RaisesAsyncInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(T)); 198 await RaisesAsyncInternal(attach, detach, testCode) ?? throw RaisesAnyException.ForNoEvent(typeof(T));
Sdk\Exceptions\RaisesAnyException.cs (2)
28 /// Creates a new instance of the <see cref="RaisesAnyException" /> class to be thrown when 32 public static RaisesAnyException ForNoEvent(Type expected) =>