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

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