Cantagallo/Cantagallo/Test/UnitTestPlayer.cs
/// <summary>
/// this method tests player's speed
/// </summary>
/// <seealso cref="IPlayer.Speed"/>
this method tests player's speed
this method tests player ' s speed
[Fact]
        public void PlayerSpeedSetterTest()
        {
            IPlayer player = new PlayerImpl();
            int tmp;
            Assert.Equal(450, player.Speed);
            tmp = player.Speed;
            player.Speed = 10;
            Assert.True(tmp > player.Speed);
            Assert.Equal(10, player.Speed);
        }
[ Fact ] public void PlayerSpeedSetterTest ( ) { IPlayer player = new PlayerImpl ( ) ; int tmp ; Assert . Equal ( 450 , player . Speed ) ; tmp = player . Speed ; player . Speed = 10 ; Assert . True ( tmp > player . Speed ) ; Assert . Equal ( 10 , player . Speed ) ; }
this method tests player's speed
this method tests player ' s speed
seealso
None