コード例 #1
0
        public void PlayerWins()
        {
            //For example, suppose you have 8 hit points, 5 damage, and 5 armor, and that the boss has 12 hit points, 7 damage, and 2 armor:
            _day21.Boss = new Boss {
                HitPoints = 12, Damage = 7, Armour = 2
            };
            var player = new Fighter {
                HitPoints = 8, Damage = 5, Armour = 5
            };

            var result = _day21.PlayerWins(player);

            Assert.IsTrue(result);
        }