MaxtimeAttribute (NUnit 2.5)
The MaxtimeAttribute is used on test methods 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 reported as a failure.
public void TimedTest()
- Any assertion failures take precedence over the elapsed time check.
- 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 long-running tests, see TimeoutAttribute.