Example #1
0
        public async Task FloatAverageShouldBe3([NotNull] IAsyncEnumerable <float> enumerable)
        {
            var average = await enumerable.AverageAsync();

            Assert.Equal(3, average);
        }
Example #2
0
        public async Task IntAverageShouldBe3(IAsyncEnumerable <int> enumerable)
        {
            var average = await enumerable.AverageAsync();

            Assert.Equal(3, average);
        }