Firstborn/Library/PackageCache/com.unity.test-framework@1..../UnityEngine.TestRunner/Assertions/UnityTestTimeoutException.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

29 lines
671 B
C#

using NUnit.Framework;
using NUnit.Framework.Interfaces;
namespace UnityEngine.TestTools.TestRunner
{
internal class UnityTestTimeoutException : ResultStateException
{
public UnityTestTimeoutException(int timeout)
: base(BuildMessage(timeout))
{
}
private static string BuildMessage(int timeout)
{
return string.Format("Timeout value of {0}ms was exceeded", timeout);
}
public override ResultState ResultState
{
get { return ResultState.Failure; }
}
public override string StackTrace
{
get { return ""; }
}
}
}