Cantagallo/Cantagallo/Test/UnitTestPlayer.cs
/// <summary>
/// this method tests player's health
/// </summary>
/// <seealso cref="IPlayer.Health"/>
/// <seealso cref="IPlayer.MaxHealth"/>
this method tests player's health
this method tests player ' s health
[Fact]
        public void PlayerHealthSetterTest()
        {
            IPlayer player = new PlayerImpl();
            Assert.Equal(15, player.Health);
            player.Health--;
            Assert.Equal(14, player.Health);
        }
[ Fact ] public void PlayerHealthSetterTest ( ) { IPlayer player = new PlayerImpl ( ) ; Assert . Equal ( 15 , player . Health ) ; player . Health -- ; Assert . Equal ( 14 , player . Health ) ; }
this method tests player's health
this method tests player ' s health
seealso
None
seealso
None