GameTests ReleasingCursorUpMakesPlayerStopWantingToJump Method Delta Engine Documentation

Namespace: TinyPlatformer.Tests
Assembly: TinyPlatformer.Tests (in TinyPlatformer.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ReleasingCursorUpMakesPlayerStopWantingToJump()
Examples

[Test, CloseAfterFirstFrame]
public void ReleasingCursorUpMakesPlayerStopWantingToJump()
{
    PressKey(Key.CursorUp);
    ReleaseKey(Key.CursorUp);
    Assert.IsFalse(player.WantsToGoLeft);
    Assert.IsFalse(player.WantsToGoRight);
    Assert.IsFalse(player.WantsToJump);
}
See Also