No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnityTestTimeoutException.cs 761B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using NUnit.Framework;
  3. using NUnit.Framework.Interfaces;
  4. namespace UnityEngine.TestTools.TestRunner
  5. {
  6. internal class UnityTestTimeoutException : ResultStateException
  7. {
  8. public UnityTestTimeoutException(int timeout)
  9. : base(BuildMessage(timeout))
  10. {
  11. }
  12. private static string BuildMessage(int timeout)
  13. {
  14. return string.Format("Timeout value of {0} ms was exceeded. If this is intended, increase the timeout value using a TimeoutAttribute.", timeout);
  15. }
  16. public override ResultState ResultState
  17. {
  18. get { return ResultState.Failure; }
  19. }
  20. public override string StackTrace
  21. {
  22. get { return ""; }
  23. }
  24. }
  25. }