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.
30 lines
744 B
C#
30 lines
744 B
C#
using NUnit.Framework;
|
|
using NUnit.Framework.Interfaces;
|
|
using UnityEngine.TestTools.Logging;
|
|
|
|
namespace UnityEngine.TestTools.TestRunner
|
|
{
|
|
internal class UnexpectedLogMessageException : ResultStateException
|
|
{
|
|
public LogMatch LogEvent;
|
|
|
|
public UnexpectedLogMessageException(LogMatch log)
|
|
: base(BuildMessage(log))
|
|
{
|
|
LogEvent = log;
|
|
}
|
|
|
|
private static string BuildMessage(LogMatch log)
|
|
{
|
|
return string.Format("Expected log did not appear: {0}", log);
|
|
}
|
|
|
|
public override ResultState ResultState
|
|
{
|
|
get { return ResultState.Failure; }
|
|
}
|
|
|
|
public override string StackTrace { get { return null; } }
|
|
}
|
|
}
|