public void Verify_BinaryTreeGrossCnt(MovieBinaryTreeRepo.BinaryTreeType type) { MovieBinaryTreeRepo mr = new MovieBinaryTreeRepo(type); mr.Init(MockMovieList, FirstField.Genre); Assert.NotNull(mr.MoneyGrossBinaryTree); Assert.Equal(2, mr.FindMoviesInGrossReceiptRange(1000, 1999)); }
public void Verify_BinaryTreeDictionary_YearFirstLoad(MovieBinaryTreeRepo.BinaryTreeType type) { MovieBinaryTreeRepo mr = new MovieBinaryTreeRepo(type); mr.Init(MockMovieList, FirstField.Year); Assert.NotNull(mr.BinaryTreeByYearByGenre); Assert.Null(mr.BinaryTreeByGenreByYear); Assert.Equal(3, mr.FindMovies(2015, 2016, "Drama:Western")); }