Example #1
0
        public void MostTopRatedMovTest()
        {
            IMovieFunctions mr = new MovieFunctions
            {
                Reviews = reviews
            };

            var res = mr.MoviesMostTopRated().Count();
            int exp = 6;

            Assert.AreEqual(exp, res);
        }
Example #2
0
        public void MostTopRatedMovPerfTest()
        {
            IMovieFunctions mr = new MovieFunctions
            {
                Reviews = reviews
            };

            Stopwatch sw = Stopwatch.StartNew();

            mr.MoviesMostTopRated();
            sw.Stop();

            Assert.IsTrue(sw.ElapsedMilliseconds < 4000);
        }