GridTests Clear 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 Clear()
Examples

[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