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

[Test, CloseAfterFirstFrame]
public void LeftHalfClickMovesBlockLeft()
{
    game.StartGame();
    InitializeBlocks(game.Controller, content);
    mockMouse.SetNativePosition(new Vector2D(0.35f, 0.0f));
    mockMouse.SetButtonState(MouseButton.Left, State.Pressing);
    AdvanceTimeAndUpdateEntities(0.05f);
    Assert.AreEqual(IndexOfSpawnColumn, game.Controller.FallingBlock.Left);
}
See Also