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

[Test, CloseAfterFirstFrame]
public void WhenABlockAffixesTheUpcomingBlockBecomesTheFallingBlock()
{
    AdvanceTimeAndUpdateEntities(1.0f);
    var upcomingBlock = controller.UpcomingBlock;
    AdvanceTimeAndUpdateEntities(10.0f);
    Assert.AreEqual(upcomingBlock, controller.FallingBlock);
}
See Also