Esempio n. 1
0
        public void MovRevCountByGradeTest()
        {
            IMovieFunctions mr = new MovieFunctions
            {
                Reviews = reviews
            };

            int res = mr.MovRevCountByGrade(2413320, 4);
            int exp = 19;

            Assert.AreEqual(exp, res);
        }
Esempio n. 2
0
        public void MovRevByGradeCountPerfTest()
        {
            IMovieFunctions mr = new MovieFunctions
            {
                Reviews = reviews
            };

            Stopwatch sw = Stopwatch.StartNew();

            mr.MovRevCountByGrade(2413320, 2);
            sw.Stop();

            Assert.IsTrue(sw.ElapsedMilliseconds < 4000);
        }