예제 #1
0
        public void FallbackTask(bool shouldFault)
        {
            Counters.Reset();
            var source = ValueTaskCompletionSource <int> .CreateFallback();

            Assert.Equal(1, Counters.TaskAllocated.Value);
            Assert.False(source.IsOptimized);

            Verify(source, shouldFault);
        }