Im clearly not with it today - heres that missing unit test

This commit is contained in:
Warren Buckley
2018-11-16 13:45:34 +00:00
parent b8409cdd2e
commit 1d093b4ecb

View File

@@ -60,6 +60,15 @@ namespace Umbraco.Tests.Logging
File.Delete(_newSearchfilePath);
}
[Test]
public void Logs_Contain_Correct_Error_Count()
{
var numberOfErrors = _logViewer.GetNumberOfErrors(startDate: _startDate, endDate: _endDate);
//Our dummy log should contain 2 errors
Assert.AreEqual(2, numberOfErrors);
}
}
}