public async Task WhenAny_CompletesWhenAnyOperationCompletes() { // Arrange var op1 = AsyncResult.Delay(1); var op2 = AsyncResult.Delay(Timeout.Infinite); // Act await AsyncResult.WhenAny(op1, op2); // Assert AssertCompleted(op1); }