문제

Is it gone from the latest version?

I want to see that a method doesn't deteriorate in its performance. I forgot the technical term for it.

도움이 되었습니까?

해결책

Have a look at the [Timeout] attribute. It might decorate test methods or test fixtures. The default value (when not specified) is 10 minutes.

[TestFixture]
public class Fixture
{
  [Test, Timeout(60)] // timeout at 60 seconds
  public void Method()
  {
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top