예제 #1
0
        public async Task Awaiting_Result_Iterates_Source_Task_Predicate()
        {
            var target = new ThrowingAsyncEnumerable <bool>();

            await Assert.ThrowsAsync <NotImplementedException>(async() =>
            {
                await target.Single(QuickFunctions <bool> .IdentityTasked);
            });
        }
예제 #2
0
        public async Task Awaiting_Result_Iterates_Source()
        {
            var target = new ThrowingAsyncEnumerable <int>();

            await Assert.ThrowsAsync <NotImplementedException>(async() =>
            {
                await target.Single();
            });
        }