Slight expression extraction to help with debugging

This commit is contained in:
Jordan Dominion
2023-10-15 22:39:21 -04:00
parent f615a34e77
commit 37c6e1bfe9
@@ -879,7 +879,8 @@ namespace Tgstation.Server.Tests.Live.Instance
Assert.AreEqual("Dominion", embedsResponse.Embed.Author?.Name);
Assert.AreEqual("https://github.com/Cyberboss", embedsResponse.Embed.Author.Url);
Assert.IsTrue(DateTimeOffset.TryParse(embedsResponse.Embed.Timestamp, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out var timestamp));
Assert.IsTrue(startTime < timestamp && endTime > timestamp);
var timestampCheck = startTime < timestamp && endTime > timestamp;
Assert.IsTrue(timestampCheck);
Assert.AreEqual("https://github.com/tgstation/tgstation-server", embedsResponse.Embed.Url);
Assert.AreEqual(3, embedsResponse.Embed.Fields?.Count);
Assert.AreEqual("field1", embedsResponse.Embed.Fields.ElementAt(0).Name);