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

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