public void PerformanceTestGetMoviesExactRating()
        {
            Stopwatch sw = Stopwatch.StartNew();;

            movieProgram.GetMoviesExactRating(1488844, 3);
            sw.Stop();

            var seconds = sw.ElapsedMilliseconds / 1000.0;

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

            Assert.AreEqual(1, movieProgram.GetMoviesExactRating(1488844, 3));
        }