4 references to DoesNotContain
Microsoft.DotNet.XUnitAssert.Tests (4)
Asserts\AsyncCollectionAssertsTests.cs (4)
551
Assert.Throws<ArgumentNullException>("collection", () => Assert.
DoesNotContain
(default(IAsyncEnumerable<int>)!, item => true));
552
Assert.Throws<ArgumentNullException>("filter", () => Assert.
DoesNotContain
(Array.Empty<int>().ToAsyncEnumerable(), (Predicate<int>)null!));
560
var ex = Record.Exception(() => Assert.
DoesNotContain
(list, item => item.StartsWith("wo")));
576
Assert.
DoesNotContain
(list, item => item.StartsWith("qu"));