public void MineBoxOfficePro_Mine_GenerateBoxOfficeValues() { // http://pro.boxoffice.com/ var test = new MineBoxOfficePro(); var actual = test.Mine(); Assert.IsNotNull(actual); Assert.IsTrue(actual.Any(), "The list was empty."); var weekendEnding = actual[0].WeekendEnding; var tab = "\t"; Logger.WriteLine($"{tab}{tab}{tab}var weekend = new DateTime({weekendEnding.Year}, {weekendEnding.Month}, {weekendEnding.Day});"); Logger.WriteLine($"{tab}{tab}{tab}UrlSource = \"{test.UrlSource}\";"); Logger.WriteLine($"{tab}{tab}{tab}return new List<IMovie>"); Logger.WriteLine($"{tab}{tab}{tab}{tab}{tab}{tab}{{"); foreach (var movie in actual.OrderByDescending(item => item.Cost)) { Logger.WriteLine($"{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}new Movie {{ MovieName = \"{movie.MovieName}\", Earnings = {movie.Earnings}, WeekendEnding = weekend }},"); } Logger.WriteLine($"{tab}{tab}{tab}{tab}{tab}{tab}}};"); }
public void MineBoxOfficePro_Mine() { // http://pro.boxoffice.com/ var test = new MineBoxOfficePro(); var actual = test.Mine(); Assert.IsNotNull(actual); Assert.IsTrue(actual.Any(), "The list was empty."); WriteMovies(actual.OrderByDescending(item => item.Earnings)); }