Example #1
0
        public void CountRatingsFromReviewer()
        {
            Rating testRating     = new Rating();
            int    number         = testRating.CountOfGradesFromReviewer(1, 2);
            int    expectedResult = 2;

            Assert.AreEqual(number, expectedResult);
        }
Example #2
0
        public void TestMethod3()
        {
            Rating    testRating = new Rating();
            Stopwatch s          = new Stopwatch();

            s.Start();
            testRating.CountOfGradesFromReviewer(1, 2);
            s.Stop();
            Assert.IsTrue(s.ElapsedMilliseconds / 1000.0 < 1.0);
        }
Example #3
0
 public void CountRatingsFromReviewerException()
 {
     Rating testRating = new Rating();
     int    number     = testRating.CountOfGradesFromReviewer(17, 6);
 }