public void AverageMovieRatiing() { Rating testRating = new Rating(); double number = testRating.AverageMovieRating(1); double expectedResult = 11.0 / 4.0; Assert.AreEqual(expectedResult, number); }
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); }