Exemplo n.º 1
0
        public void SelectsOnlyRequestedLogs()
        {
            var logState = LogState.WithLogs(CreateLogs());
            var filtered = logState.SelectLogsSince(912);

            Assert.AreEqual(1095 - 912, filtered.Length);
        }
Exemplo n.º 2
0
        public void SelectsAllLogs()
        {
            var logState = LogState.WithLogs(CreateLogs());
            var filtered = logState.SelectAllLogs();

            Assert.AreEqual(1095, filtered.Length);
            Assert.AreEqual("561", filtered[560].LineKey);
            Assert.AreEqual("$L 09/16/2019 - 12:39:05: \"Joe<4><BOT><TERRORIST>\" dropped \"vesthelm\"", filtered[896].Payload);
        }