MaxtimeAttribute (NUnit 2.5)

The MaxtimeAttribute is used to specify a maximum time in milliseconds for a test case. If the test case takes longer than the specified time to complete, it is considered to have failed.

Note: This attribute does not cancel the test if the time is exceeded. It merely waits for the test to complete and then compares the elapsed time to the specified maximum. If you want to cancel a long-running tests, see TimeoutAttribute.