ControllerTests CanMoveLeftElsewhere 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 CanMoveLeftElsewhere()
Examples

[Test, CloseAfterFirstFrame]
public void CanMoveLeftElsewhere()
{
    Assert.IsFalse(sounds.BlockMoved.IsAnyInstancePlaying);
    controller.FallingBlock = new Block(displayMode, content, new Vector2D(3, 1));
    controller.MoveBlockLeftIfPossible();
    Assert.IsTrue(sounds.BlockMoved.IsAnyInstancePlaying);
    Assert.AreEqual(2, controller.FallingBlock.Left);
}
See Also