Beispiel #1
0
        public void TestParseFile()
        {
            var entries = _accessLogParser.ParseLogs(LogFileFixture.ReadLogs());

            entries.Should()
            .BeEquivalentTo(LogFileFixture.GetAccessEntries());
        }
Beispiel #2
0
        public void TestGetLogs()
        {
            var logs = _accessLog.GetLogs();

            logs.Should()
            .BeEquivalentTo(LogFileFixture.ReadLogs());
        }
Beispiel #3
0
        // --------------------------------------------------------------------------------------------------

        private void ExpectFullLogs()
        {
            _accessLogMock.Setup(accessLog => accessLog.GetLogs())
            .Returns(LogFileFixture.ReadLogs());
        }