public void TestParseFile() { var entries = _accessLogParser.ParseLogs(LogFileFixture.ReadLogs()); entries.Should() .BeEquivalentTo(LogFileFixture.GetAccessEntries()); }
public void TestGetLogsFromStartIndex() { var logs = _accessLog.GetLogs(2); logs.Should() .BeEquivalentTo(LogFileFixture.ReadLogsTrimmed()); }
public void TestGetLogs() { var logs = _accessLog.GetLogs(); logs.Should() .BeEquivalentTo(LogFileFixture.ReadLogs()); }
private void ExpectLogsUsingStartIndex() { _accessLogMock.Setup(accessLog => accessLog.GetLogs(It.IsAny <long>())) .Returns(LogFileFixture.ReadLogsTrimmed()); }
// -------------------------------------------------------------------------------------------------- private void ExpectFullLogs() { _accessLogMock.Setup(accessLog => accessLog.GetLogs()) .Returns(LogFileFixture.ReadLogs()); }
public void TearDown() { LogFileFixture.DeleteTempLogs(_logsFile); }
public void SetUp() { _logsFile = LogFileFixture.WriteLogs(); _accessLog = new AccessLogFile(CreateLogger <AccessLogFile>(), _logsFile); }