Exemple #1
0
        public void Evaluate_Result_For_Multiple_Reviews()
        {
            // Organise

            var data = SetupMovieAndReviews(ratings: new[] { 3, 5 });

            //Act

            var rater  = new RateMovie(data);
            var result = rater.EvaluateRating(5);

            //Assert

            Assert.AreEqual(4, result.Rating);
        }
Exemple #2
0
        public void Evaluate_Result_For_Multiple_Reviews()
        {
            // Organise

            var data = SetupMovieAndReviews(ratings: new[] {3, 5});
          
            //Act

            var rater = new RateMovie(data);
            var result = rater.EvaluateRating(5);

            //Assert

            Assert.AreEqual(4, result.Rating);
        }