Grid Clear Method Delta Engine Documentation

Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void Clear()
Remarks

Tests: Blocks.Tests.GridTests
Examples

1 unit tests call Blocks.Grid.Clear
[Test, Ignore]
public void Clear()
{
    //using (NUnit.Framework.Randomizer.Use(new FixedRandom(new[] { 0.8f, 0.0f }))) 
    //{
    grid.AffixBlock(new Block(displayMode, content, Vector2D.One));
        Assert.AreEqual(4, ControllerTests.CountBricks(grid));
        AdvanceTimeAndUpdateEntities();
        grid.Clear();
        Assert.AreEqual(0, ControllerTests.CountBricks(grid));
    //}
See Also