Created
December 13, 2019 06:25
-
-
Save guitarrapc/38a4e90ae7280ac58721015b7bd9052d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact(Timeout = 50)] | |
public async Task FactTimeout_TimeoutLessThanProcessingTime_ThrowTestTimeoutException() | |
{ | |
Action act = () => Task.Delay(5000); | |
// Trigger the timeout by attempting something that will take too long | |
await act; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment