You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
839 B
C#
27 lines
839 B
C#
1 year ago
|
using NUnit.Framework;
|
||
|
using NUnit.Framework.Interfaces;
|
||
|
using UnityEngine.TestTools.Logging;
|
||
|
|
||
|
namespace UnityEngine.TestTools.TestRunner
|
||
|
{
|
||
|
internal class OutOfOrderExpectedLogMessageException : ResultStateException
|
||
|
{
|
||
|
public OutOfOrderExpectedLogMessageException(LogEvent log, LogMatch nextExpected)
|
||
|
: base(BuildMessage(log, nextExpected))
|
||
|
{
|
||
|
}
|
||
|
|
||
|
private static string BuildMessage(LogEvent log, LogMatch nextExpected)
|
||
|
{
|
||
|
return $"Expected {log.LogType} with '{log.Message}' arrived out of order. Expected {nextExpected.LogType} with '{nextExpected.Message}' next.";
|
||
|
}
|
||
|
|
||
|
public override ResultState ResultState
|
||
|
{
|
||
|
get { return ResultState.Failure; }
|
||
|
}
|
||
|
|
||
|
public override string StackTrace { get { return null; } }
|
||
|
}
|
||
|
}
|