A game about forced loneliness, made by TACStudios
1using System;
2using NUnit.Framework;
3using NUnit.Framework.Interfaces;
4using UnityEngine.TestTools.Logging;
5
6namespace UnityEngine.TestTools.TestRunner
7{
8 internal class OutOfOrderExpectedLogMessageException : ResultStateException
9 {
10 public OutOfOrderExpectedLogMessageException(LogEvent log, LogMatch nextExpected)
11 : base(BuildMessage(log, nextExpected))
12 {
13 }
14
15 private static string BuildMessage(LogEvent log, LogMatch nextExpected)
16 {
17 return $"Expected {log.LogType} with '{log.Message}' arrived out of order. Expected {nextExpected.LogType} with '{nextExpected.Message}' next.";
18 }
19
20 public override ResultState ResultState
21 {
22 get { return ResultState.Failure; }
23 }
24
25 public override string StackTrace { get { return null; } }
26 }
27}