コード例 #1
0
        public void ShouldReceiveDamage(int damage, int initialHealth)
        {
            var sut = new SimplePlayer("Player", _mockHand.Object, initialHealth, 0, 0);

            sut.ReceiveDamage(damage);

            int remainingHealth = Math.Max(initialHealth - damage, 0);

            Assert.Equal(remainingHealth, sut.Health);
        }