A game about forced loneliness, made by TACStudios
1using System; 2using NUnit.Framework; 3using NUnit.Framework.Interfaces; 4using UnityEngine.TestTools.Logging; 5using UnityEngine.TestTools.Utils; 6 7namespace UnityEngine.TestTools.TestRunner 8{ 9 internal class UnhandledLogMessageException : ResultStateException 10 { 11 public LogEvent LogEvent; 12 private readonly string m_CustomStackTrace; 13 14 public UnhandledLogMessageException(LogEvent log) 15 : base(BuildMessage(log)) 16 { 17 LogEvent = log; 18 m_CustomStackTrace = StackTraceFilter.Filter(log.StackTrace); 19 } 20 21 private static string BuildMessage(LogEvent log) 22 { 23 return string.Format("Unhandled log message: '{0}'. Use UnityEngine.TestTools.LogAssert.Expect", log); 24 } 25 26 public override ResultState ResultState 27 { 28 get { return ResultState.Failure; } 29 } 30 31 public override string StackTrace 32 { 33 get { return m_CustomStackTrace; } 34 } 35 } 36}