3 instantiations of SingleException
xunit.assert (3)
Sdk\Exceptions\SingleException.cs (3)
45
return new
SingleException
("Assert.Single() Failure: The collection was empty");
47
return new
SingleException
(
106
return new
SingleException
(message);
34 references to SingleException
Microsoft.DotNet.XUnitAssert.Tests (22)
Asserts\AsyncCollectionAssertsTests.cs (8)
1417
Assert.IsType<
SingleException
>(ex);
1438
Assert.IsType<
SingleException
>(ex);
1453
Assert.IsType<
SingleException
>(ex);
1478
Assert.IsType<
SingleException
>(ex);
1513
Assert.IsType<
SingleException
>(ex);
1529
Assert.IsType<
SingleException
>(ex);
1546
Assert.IsType<
SingleException
>(ex);
1573
Assert.IsType<
SingleException
>(ex);
Asserts\CollectionAssertsTests.cs (14)
2411
Assert.IsType<
SingleException
>(ex);
2432
Assert.IsType<
SingleException
>(ex);
2447
Assert.IsType<
SingleException
>(ex);
2487
Assert.IsType<
SingleException
>(ex);
2503
Assert.IsType<
SingleException
>(ex);
2520
Assert.IsType<
SingleException
>(ex);
2546
Assert.IsType<
SingleException
>(ex);
2567
Assert.IsType<
SingleException
>(ex);
2582
Assert.IsType<
SingleException
>(ex);
2607
Assert.IsType<
SingleException
>(ex);
2642
Assert.IsType<
SingleException
>(ex);
2658
Assert.IsType<
SingleException
>(ex);
2675
Assert.IsType<
SingleException
>(ex);
2702
Assert.IsType<
SingleException
>(ex);
xunit.assert (12)
AsyncCollectionAsserts.cs (2)
440
/// <exception cref="
SingleException
">Thrown when the collection does not contain
455
/// <exception cref="
SingleException
">Thrown when the filtered collection does
CollectionAsserts.cs (6)
680
/// <exception cref="
SingleException
">Thrown when the collection does not contain
701
/// <exception cref="
SingleException
">Thrown when the collection does not contain
723
/// <exception cref="
SingleException
">Thrown when the collection does not contain
742
/// <exception cref="
SingleException
">Thrown when the filtered collection does
787
throw
SingleException
.Empty(expected, tracker.FormatStart());
795
throw
SingleException
.MoreThanOne(count, expected, tracker.FormatStart(), matchIndices);
Sdk\Exceptions\SingleException.cs (4)
29
/// Creates an new instance of the <see cref="
SingleException
"/> class to be thrown when
34
public static
SingleException
Empty(
60
/// Creates an new instance of the <see cref="
SingleException
"/> class to be thrown when
67
public static
SingleException
MoreThanOne(