Cantagallo/Cantagallo/Test/UnitTestPlayer.cs
/// <summary>
/// this method tests player's getters
/// </summary>
/// <seealso cref="IPlayer"/>
this method tests player's getters
this method tests player ' s getters
[Fact]
        public void PlayerGettersTest()
        {
            IPlayer player = new PlayerImpl();
            Assert.Equal(450, player.Speed);
            Assert.Equal(1, player.MaxJumps);
            Assert.Equal(1, player.JumpCounter);
            Assert.Equal(15, player.Health);
            Assert.Equal(-550, player.JumpsHeight);
            Assert.Equal(1, player.Dimension);
            Assert.Equal(PlayerColor.Blue, player.PColor);
        }
[ Fact ] public void PlayerGettersTest ( ) { IPlayer player = new PlayerImpl ( ) ; Assert . Equal ( 450 , player . Speed ) ; Assert . Equal ( 1 , player . MaxJumps ) ; Assert . Equal ( 1 , player . JumpCounter ) ; Assert . Equal ( 15 , player . Health ) ; Assert . Equal ( - 550 , player . JumpsHeight ) ; Assert . Equal ( 1 , player . Dimension ) ; Assert . Equal ( PlayerColor . Blue , player . PColor ) ; }
this method tests player's getters
this method tests player ' s getters
seealso
None