3 instantiations of SingleException
xunit.assert (3)
Sdk\Exceptions\SingleException.cs (3)
49 return new SingleException("Assert.Single() Failure: The collection was empty"); 51 return new SingleException( 110 return new SingleException(message);
34 references to SingleException
Microsoft.DotNet.XUnitAssert.Tests (22)
AsyncCollectionAssertsTests.cs (8)
1394 Assert.IsType<SingleException>(ex); 1415 Assert.IsType<SingleException>(ex); 1430 Assert.IsType<SingleException>(ex); 1455 Assert.IsType<SingleException>(ex); 1490 Assert.IsType<SingleException>(ex); 1506 Assert.IsType<SingleException>(ex); 1523 Assert.IsType<SingleException>(ex); 1550 Assert.IsType<SingleException>(ex);
CollectionAssertsTests.cs (14)
2291 Assert.IsType<SingleException>(ex); 2312 Assert.IsType<SingleException>(ex); 2327 Assert.IsType<SingleException>(ex); 2367 Assert.IsType<SingleException>(ex); 2383 Assert.IsType<SingleException>(ex); 2400 Assert.IsType<SingleException>(ex); 2426 Assert.IsType<SingleException>(ex); 2447 Assert.IsType<SingleException>(ex); 2462 Assert.IsType<SingleException>(ex); 2487 Assert.IsType<SingleException>(ex); 2522 Assert.IsType<SingleException>(ex); 2538 Assert.IsType<SingleException>(ex); 2555 Assert.IsType<SingleException>(ex); 2582 Assert.IsType<SingleException>(ex);
xunit.assert (12)
AsyncCollectionAsserts.cs (2)
447 /// <exception cref="SingleException">Thrown when the collection does not contain 462 /// <exception cref="SingleException">Thrown when the filtered collection does
CollectionAsserts.cs (6)
619 /// <exception cref="SingleException">Thrown when the collection does not contain 640 /// <exception cref="SingleException">Thrown when the collection does not contain 662 /// <exception cref="SingleException">Thrown when the collection does not contain 681 /// <exception cref="SingleException">Thrown when the filtered collection does 726 throw SingleException.Empty(expected, tracker.FormatStart()); 734 throw SingleException.MoreThanOne(count, expected, tracker.FormatStart(), matchIndices);
Sdk\Exceptions\SingleException.cs (4)
33 /// Creates an new instance of the <see cref="SingleException"/> class to be thrown when 38 public static SingleException Empty( 64 /// Creates an new instance of the <see cref="SingleException"/> class to be thrown when 71 public static SingleException MoreThanOne(