Esempio n. 1
0
        public void AverageMovieRatiing()
        {
            Rating testRating     = new Rating();
            double number         = testRating.AverageMovieRating(1);
            double expectedResult = 11.0 / 4.0;

            Assert.AreEqual(expectedResult, number);
        }
Esempio n. 2
0
        public void TestMethod5()
        {
            Rating    testRating = new Rating();
            Stopwatch s          = new Stopwatch();

            s.Start();
            testRating.AverageMovieRating(1);
            s.Stop();
            Assert.IsTrue(s.ElapsedMilliseconds / 1000.0 < 1.0);
        }