コード例 #1
0
        public void ChechIfFighterIsAliveWhenItsHealthIsLowerThanZero()
        {
            Prisoner prisoner = new Prisoner("Pesho", new Dice(300));

            prisoner.Health = 0;

            bool IsAlive;

            if (prisoner.Alive() == false)
            {
                IsAlive = false;
            }
            else
            {
                IsAlive = true;
            }

            Assert.AreEqual(false, IsAlive, "Fighter is not dead when its health is zero.");
        }