private static void RecordEntry(History.Entry e) { history.entries.Add(e); switch (e.type) { case History.EntryType.Submit: StratusDebug.Log(e.text); break; case History.EntryType.Result: StratusDebug.Log(e.text); break; case History.EntryType.Warning: StratusDebug.LogWarning(e.text); break; case History.EntryType.Error: StratusDebug.LogError(e.text); break; } onEntry?.Invoke(e); }
private void CheckHistoryText(History.Entry actualEntry, string expectedText) { Assert.Equal(expectedText, actualEntry?.Text); }