3 instantiations of SingleException
xunit.assert (3)
Sdk\Exceptions\SingleException.cs (3)
42
return new
SingleException
("Assert.Single() Failure: The collection was empty");
44
return new
SingleException
(
103
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)
443
/// <exception cref="
SingleException
">Thrown when the collection does not contain
458
/// <exception cref="
SingleException
">Thrown when the filtered collection does
CollectionAsserts.cs (6)
606
/// <exception cref="
SingleException
">Thrown when the collection does not contain
627
/// <exception cref="
SingleException
">Thrown when the collection does not contain
649
/// <exception cref="
SingleException
">Thrown when the collection does not contain
668
/// <exception cref="
SingleException
">Thrown when the filtered collection does
713
throw
SingleException
.Empty(expected, tracker.FormatStart());
721
throw
SingleException
.MoreThanOne(count, expected, tracker.FormatStart(), matchIndices);
Sdk\Exceptions\SingleException.cs (4)
26
/// Creates an new instance of the <see cref="
SingleException
"/> class to be thrown when
31
public static
SingleException
Empty(
57
/// Creates an new instance of the <see cref="
SingleException
"/> class to be thrown when
64
public static
SingleException
MoreThanOne(