UnityTestTimeoutException.cs 677 B

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