Esempio n. 1
0
        public void PerformanceTestGetHighestReviewsMovies()
        {
            Stopwatch sw = Stopwatch.StartNew();;

            movieProgram.GetHighestReviewsMovies();
            sw.Stop();

            var seconds = sw.ElapsedMilliseconds / 1000.0;

            Assert.IsTrue(seconds <= MAXTIME);
        }
Esempio n. 2
0
        public void TestGetHighestReviewsMovies()
        {
            MovieProgram movieProgram = new MovieProgram("MovieReviewEASV/Test.json");

            Assert.AreEqual(822109, movieProgram.GetHighestReviewsMovies());
        }