public void shouldFindMovieByYear() { var moviesManager = new MoviesManager(); List<Movie> movies = moviesManager.FindByYear(2004); Assert.That(movies.Count(), Is.EqualTo(2)); Assert.That(movies.Count(movie => movie.Title == "Star Wars"), Is.EqualTo(1)); Assert.That(movies.Count(movie => movie.Title == "Shrek 1"), Is.EqualTo(1)); }
public void shouldFindMovieByYear() { var moviesManager = new MoviesManager(); List <Movie> movies = moviesManager.FindByYear(2004); Assert.That(movies.Count(), Is.EqualTo(2)); Assert.That(movies.Count(movie => movie.Title == "Star Wars"), Is.EqualTo(1)); Assert.That(movies.Count(movie => movie.Title == "Shrek 1"), Is.EqualTo(1)); }
public void shouldFindMovieByTitle() { var moviesManager = new MoviesManager(); Assert.That(moviesManager.FindByTitle("Star Wars").Count(), Is.EqualTo(1)); }
public void shouldReturnThreeMovies() { var moviesManager = new MoviesManager(); Assert.That(moviesManager.FindAll().Count(), Is.EqualTo(3)); }