Exemplo n.º 1
0
        public void PerformanceTestGetAvgGradeByReviewer()
        {
            Stopwatch sw = Stopwatch.StartNew();

            movieProgram.GetAvgGradeByReviewer(1);
            sw.Stop();

            var seconds = sw.ElapsedMilliseconds / 1000.0;

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

            movieProgram.GetAvgGradeByReviewer(4);
        }
Exemplo n.º 3
0
        public void TestGetAvgGradeByReviewer()
        {
            MovieProgram movieProgram = new MovieProgram("MovieReviewEASV/Test.json");

            Assert.AreEqual(4, movieProgram.GetAvgGradeByReviewer(1));
        }