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

[Test, CloseAfterFirstFrame]
public void DropSlowAffixesBlocksSlowly()
{
    controller.IsFallingFast = false;
    controller.FallingBlock = new Block(displayMode, content, Vector2D.One);
    controller.UpcomingBlock = new Block(displayMode, content, Vector2D.One);
    AdvanceTimeAndUpdateEntities(0.1f);
    Assert.AreEqual(0, CountBricks(grid));
    AdvanceTimeAndUpdateEntities(1.5f);
    Assert.AreEqual(0, CountBricks(grid));
    AdvanceTimeAndUpdateEntities(9.0f);
    Assert.AreEqual(4, CountBricks(grid), 1);
}
See Also