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); }