public void CountMovieReview() { Rating testRating = new Rating(); int number = testRating.CountMovieReview(1); int expectedResult = 4; Assert.AreEqual(number, expectedResult); }
public void TestMethod4() { Rating testRating = new Rating(); Stopwatch s = new Stopwatch(); s.Start(); testRating.CountMovieReview(1); s.Stop(); Assert.IsTrue(s.ElapsedMilliseconds / 1000.0 < 1.0); }
public void CountMovieReviewException() { Rating testRating = new Rating(); int number = testRating.CountMovieReview(0); }