1 instantiation of DistinctException
xunit.assert (1)
Sdk\Exceptions\DistinctException.cs (1)
36
new
DistinctException
(
13 references to DistinctException
Microsoft.DotNet.XUnitAssert.Tests (6)
Asserts\AsyncCollectionAssertsTests.cs (3)
416
Assert.IsType<
DistinctException
>(ex);
432
Assert.IsType<
DistinctException
>(ex);
457
Assert.IsType<
DistinctException
>(ex);
Asserts\CollectionAssertsTests.cs (3)
489
Assert.IsType<
DistinctException
>(ex);
505
Assert.IsType<
DistinctException
>(ex);
530
Assert.IsType<
DistinctException
>(ex);
xunit.assert (7)
AsyncCollectionAsserts.cs (2)
141
/// <exception cref="
DistinctException
">Thrown when an object is present inside the collection more than once</exception>
151
/// <exception cref="
DistinctException
">Thrown when an object is present inside the collection more than once</exception>
CollectionAsserts.cs (3)
389
/// <exception cref="
DistinctException
">Thrown when an object is present inside the collection more than once</exception>
399
/// <exception cref="
DistinctException
">Thrown when an object is present inside the collection more than once</exception>
413
throw
DistinctException
.ForDuplicateItem(ArgumentFormatter.Format(item), tracker.FormatStart());
Sdk\Exceptions\DistinctException.cs (2)
28
/// Creates an instance of the <see cref="
DistinctException
"/> class that is thrown
33
public static
DistinctException
ForDuplicateItem(