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

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