Esempio n. 1
0
        public void CheckIfAlive()
        {
            int initialLives = 3;

            var striker = new Striker(new MockBoard(), new MockConsoleWriter(), initialLives);

            striker.ReduceLives(1);

            Assert.True(striker.Alive());

            striker.ReduceLives(initialLives - 1);

            Assert.False(striker.Alive());
        }