Example #1
0
        public void TestGetReviewersSpecificGrade()
        {
            MovieProgram movieProgram = new MovieProgram("MovieReviewEASV/Test.json");

            movieProgram.Data("TestJsons/Test.json");
            Assert.AreEqual(3, movieProgram.GetReviewersSpecificGrade(2, 4));
        }
        public void PerformanceTestGetReviewersSpecificGrade()
        {
            Stopwatch sw = Stopwatch.StartNew();;

            movieProgram.GetReviewersSpecificGrade(2, 4);
            sw.Stop();

            var seconds = sw.ElapsedMilliseconds / 1000.0;

            Assert.IsTrue(seconds <= MAXTIME);
        }