Beispiel #1
0
        public void 連續超過80分的天數_未達80分時天數加0()
        {
            var badgeData = new BadgeData();

            badgeData.Smile80Days = 5;
            var score   = 79.99999;
            var checker = new Smile80DaysChecker();

            checker.Check(score, badgeData);

            Assert.AreEqual(5, badgeData.Smile80Days);
        }
Beispiel #2
0
        public void 連續超過80分的天數_超過80分時天數加1()
        {
            var badgeData = new BadgeData();

            badgeData.Smile80Days = 5;
            var score   = 80;
            var checker = new Smile80DaysChecker();

            checker.Check(score, badgeData);

            Assert.AreEqual(6, badgeData.Smile80Days);
        }