No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OutOfOrderExpectedLogMessageException.cs 839B

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