Ei kuvausta
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.

UnexpectedLogMessageException.cs 758B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using NUnit.Framework;
  3. using NUnit.Framework.Interfaces;
  4. using UnityEngine.TestTools.Logging;
  5. namespace UnityEngine.TestTools.TestRunner
  6. {
  7. internal class UnexpectedLogMessageException : ResultStateException
  8. {
  9. public LogMatch LogEvent;
  10. public UnexpectedLogMessageException(LogMatch log)
  11. : base(BuildMessage(log))
  12. {
  13. LogEvent = log;
  14. }
  15. private static string BuildMessage(LogMatch log)
  16. {
  17. return string.Format("Expected log did not appear: {0}", log);
  18. }
  19. public override ResultState ResultState
  20. {
  21. get { return ResultState.Failure; }
  22. }
  23. public override string StackTrace { get { return null; } }
  24. }
  25. }