Exemple #1
0
        public void CalcAvgRatingTestFail()
        {
            var    model        = new TotalRating();
            double totalRatings = 15;
            double totalRaters  = 4;

            double result = model.calcAvgRating(totalRatings, totalRaters);

            Assert.AreNotEqual(22, result);
        }
Exemple #2
0
        public void CalcAvgRatingTestPass()
        {
            var    model        = new TotalRating();
            double totalRatings = 15;
            double totalRaters  = 4;

            double result = model.calcAvgRating(totalRatings, totalRaters);

            Assert.AreEqual(3.75, result);
        }