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

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

            Assert.Equal(3, average);
        }