public void OutOfDateTest(Resolution resolution, int days, bool expected) { var path = "./testfile.txt"; var time = DateTime.Now - TimeSpan.FromDays(days); File.Create(path).Close(); File.SetLastWriteTime(path, time); var test = ApiDataProvider.IsOutOfDate(resolution, path); Assert.AreEqual(expected, test); File.Delete(path); }
public void Setup() { _apiDataProvider = new ApiDataProvider(); }