コード例 #1
0
 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));
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        public void shouldFindMovieByTitle()
        {
            var moviesManager = new MoviesManager();

            Assert.That(moviesManager.FindByTitle("Star Wars").Count(), Is.EqualTo(1));
        }
コード例 #4
0
        public void shouldReturnThreeMovies()
        {
            var moviesManager = new MoviesManager();

            Assert.That(moviesManager.FindAll().Count(), Is.EqualTo(3));
        }
コード例 #5
0
 public void shouldReturnThreeMovies()
 {
     var moviesManager = new MoviesManager();
     Assert.That(moviesManager.FindAll().Count(), Is.EqualTo(3));
 }
コード例 #6
0
 public void shouldFindMovieByTitle()
 {
     var moviesManager = new MoviesManager();
     Assert.That(moviesManager.FindByTitle("Star Wars").Count(), Is.EqualTo(1));
 }