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

[Test, CloseAfterFirstFrame]
public void CantMoveRightAtRightWall()
{
    Assert.IsFalse(sounds.BlockCouldNotMove.IsAnyInstancePlaying);
    controller.FallingBlock = new Block(displayMode, content, new Vector2D(11, 1));
    controller.MoveBlockRightIfPossible();
    Assert.AreEqual(11, controller.FallingBlock.Left);
    Assert.IsTrue(sounds.BlockCouldNotMove.IsAnyInstancePlaying);
}
See Also