4 references to Contains
Microsoft.DotNet.XUnitAssert.Tests (4)
AsyncCollectionAssertsTests.cs (4)
359
Assert.Throws<ArgumentNullException>("collection", () => Assert.
Contains
(default(IAsyncEnumerable<int>)!, item => true));
360
Assert.Throws<ArgumentNullException>("filter", () => Assert.
Contains
(new int[0].ToAsyncEnumerable(), (Predicate<int>)null!));
368
Assert.
Contains
(list, item => item.StartsWith("w"));
376
var ex = Record.Exception(() => Assert.
Contains
(list, item => item.StartsWith("q")));