Im clearly not with it today - heres that missing unit test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user