AsyncCollectionAssertsTests.cs (8)
1469 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!, _ => true));
1470 Assert.Throws<ArgumentNullException>("predicate", () => Assert.Single(new object[0].ToAsyncEnumerable(), null!));
1478 var result = Assert.Single(collection, item => item.StartsWith("H"));
1488 var ex = Record.Exception(() => Assert.Single(collection, item => false));
1504 var ex = Record.Exception(() => Assert.Single(collection, item => true));
1521 var ex = Record.Exception(() => Assert.Single(collection, item => item == 4));
1538 var value = Assert.Single(collection, c => c != 'Q');
1548 var ex = Record.Exception(() => Assert.Single(collection, c => c == 'Q'));