public void MineBoxOfficeMojoTheaterCount_Mine() { var test = new MineBoxOfficeMojoTheaterCount(); var actual = test.Mine(); Assert.IsNotNull(actual); Assert.IsTrue(actual.Any(), "The list was empty."); WriteMovies(actual.OrderByDescending(item => item.TheaterCount)); }
public void MineBoxOfficeMojoTheaterCount_Mine_Previous3Weeks() { var weekendEnding = MovieDateUtil.LastSunday(DateTime.Now).AddDays(-14); var test = new MineBoxOfficeMojoTheaterCount(weekendEnding); var actual = test.Mine(); Assert.IsNotNull(actual); Assert.IsTrue(actual.Any(), "The list was empty."); Logger.WriteLine($"Weekend Ending: {weekendEnding}"); WriteMovies(actual.OrderByDescending(item => item.Earnings)); }