1 instantiation of ContainsDuplicateException
xunit.assert (1)
CollectionAsserts.cs (1)
325 throw new ContainsDuplicateException(x, collection);
9 references to ContainsDuplicateException
Microsoft.DotNet.XUnitAssert.Tests (6)
CollectionAssertsTests.cs (6)
559 var ex = Assert.Throws<ContainsDuplicateException>(() => Assert.Distinct(list)); 572 var ex = Assert.Throws<ContainsDuplicateException>(() => Assert.Distinct(list)); 594 var ex = Assert.Throws<ContainsDuplicateException>(() => Assert.Distinct(list, StringComparer.OrdinalIgnoreCase));
xunit.assert (3)
CollectionAsserts.cs (2)
303 /// <exception cref="ContainsDuplicateException">Thrown when an object is present inside the container more than once</exception> 313 /// <exception cref="ContainsDuplicateException">Thrown when an object is present inside the container more than once</exception>
Sdk\Exceptions\ContainsDuplicateException.cs (1)
23 /// Creates a new instance of the <see cref="ContainsDuplicateException"/> class.