/
TON618OFF
/
Unity-Project-RTU
Обзор
Документация
Войти
/
TON618OFF
/
Unity-Project-RTU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Library/PackageCache/com.unity.test-framework@1.1.33/UnityEngine.TestRunner/Assertions/OutOfOrderExpectedLogMessageException.cs
26 строк
839 B
TON618OFF
release
03 окт 2024, 22:20
03 окт 2024, 22:20
7c70e9f
Код
Авторство
О чём код?
using NUnit.Framework; using NUnit.Framework.Interfaces; using UnityEngine.TestTools.Logging; namespace UnityEngine.TestTools.TestRunner { internal class OutOfOrderExpectedLogMessageException : ResultStateException { public OutOfOrderExpectedLogMessageException(LogEvent log, LogMatch nextExpected) : base(BuildMessage(log, nextExpected)) { } private static string BuildMessage(LogEvent log, LogMatch nextExpected) { return $"Expected {log.LogType} with '{log.Message}' arrived out of order. Expected {nextExpected.LogType} with '{nextExpected.Message}' next."; } public override ResultState ResultState { get { return ResultState.Failure; } } public override string StackTrace { get { return null; } } } }