[lang-ref] ( all_satisfy_when_empty ) ( csharp )
[Fact]
public void TestAllSatisfyWhenEmpty()
{
// True
List<int> items = new() {};
bool isAllSatisfy = items.All(x => x % 2 == 0);
Assert.True(isAllSatisfy);
}
[Fact]
public void TestAllSatisfyWhenEmpty()
{
// True
List<int> items = new() {};
bool isAllSatisfy = items.All(x => x % 2 == 0);
Assert.True(isAllSatisfy);
}