GameTests CursorUpMakesPlayerWantToJump 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 CursorUpMakesPlayerWantToJump()
Examples

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