示例#1
0
        public void BackstagePassTestQualityWhereSellinBetween5and10()
        {
            var backstagePass = new BackstagePasses();

            backstagePass.EndOfDayUpdate(9, 5);
            backstagePass.Quality.ShouldBe(7);
        }
示例#2
0
        public void BackstagePassTestQualityWhereSellinLess0()
        {
            var backstagePass = new BackstagePasses();

            backstagePass.EndOfDayUpdate(-1, 5);
            backstagePass.Quality.ShouldBe(0);
        }
示例#3
0
        public void BackstagePassTestQualityWhereSellinGreaterThan10()
        {
            var backstagePass = new BackstagePasses();

            backstagePass.EndOfDayUpdate(12, 5);
            backstagePass.Quality.ShouldBe(6);
        }