Exemplo n.º 1
0
        public void OptimizedTask(bool shouldFault)
        {
            Counters.Reset();
            var source = ValueTaskCompletionSource <int> .CreateOptimized();

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

            Verify(source, shouldFault);
        }