6 references to Distinct
Microsoft.DotNet.XUnitAssert.Tests (3)
CollectionAssertsTests.cs (3)
427 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Distinct(new object[0], null!)); 476 Assert.Distinct(list, StringComparer.Ordinal); 484 var ex = Record.Exception(() => Assert.Distinct(list, StringComparer.OrdinalIgnoreCase));
xunit.assert (3)
AsyncCollectionAsserts.cs (2)
150 Distinct(AssertHelper.ToEnumerable(collection), EqualityComparer<T>.Default); 162 Distinct(AssertHelper.ToEnumerable(collection), comparer);
CollectionAsserts.cs (1)
316 Distinct<T>(collection, EqualityComparer<T>.Default);