Esempio n. 1
0
 public async Task AverageAwaitAsync_Selector_Decimal_Empty()
 {
     var ys = new decimal[0].ToAsyncEnumerable();
     await Assert.ThrowsAsync <InvalidOperationException>(() => ys.AverageAwaitAsync(x => new ValueTask <decimal>(x)).AsTask());
 }