public void RevOfMovTest() { IMovieFunctions mr = new MovieFunctions { Reviews = reviews }; List <int> exp = new List <int> { 393 }; Assert.AreEqual(exp, mr.MovieReviews(2342338)); Assert.AreEqual(exp, mr.MovieReviews(1591957)); }
public void RevOfMovPerfTest() { IMovieFunctions mr = new MovieFunctions { Reviews = reviews }; Stopwatch sw = Stopwatch.StartNew(); mr.MovieReviews(2342338); sw.Stop(); Assert.IsTrue(sw.ElapsedMilliseconds <= 4000); }