GameTests BottomHalfTouchDropsBlockFast Method Delta Engine Documentation

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

public void BottomHalfTouchDropsBlockFast()
Examples

[Test, CloseAfterFirstFrame]
public void BottomHalfTouchDropsBlockFast()
{
    game.StartGame();
    InitializeBlocks(game.Controller, content);
    mockTouch.SetTouchState(0, State.Pressing, new Vector2D(0.5f, 0.6f));
    AdvanceTimeAndUpdateEntities(0.01f);
    Assert.IsTrue(game.Controller.IsFallingFast);
}
See Also