예제 #1
0
        public void PerformanceTestGetMoviesExactRating()
        {
            Stopwatch sw = Stopwatch.StartNew();;

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

            var seconds = sw.ElapsedMilliseconds / 1000.0;

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

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