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

[Test, CloseAfterFirstFrame]
public void DropFastAffixesBlocksQuickly()
{
    controller.IsFallingFast = true;
    controller.FallingBlock = new Block(displayMode, content, Vector2D.One);
    controller.UpcomingBlock = new Block(displayMode, content, Vector2D.One);
    Assert.AreEqual(0, CountBricks(grid));
    AdvanceTimeAndUpdateEntities(2.5f);
    Assert.GreaterOrEqual(CountBricks(grid), 4);
}
See Also