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

[Test, CloseAfterFirstFrame]
public void LeftHalfTouchMovesBlockLeft()
{
    game.StartGame();
    InitializeBlocks(game.Controller, content);
    mockTouch.SetTouchState(0, State.Pressing, new Vector2D(0.35f, 0.0f));
    AdvanceTimeAndUpdateEntities(0.01f);
    Assert.AreEqual(IndexOfSpawnColumn, game.Controller.FallingBlock.Left);
}
See Also