BlockTests CheckIBlockAppearsATenthOfTheTime 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 CheckIBlockAppearsATenthOfTheTime()
Examples

[Test, CloseAfterFirstFrame]
public void CheckIBlockAppearsATenthOfTheTime()
{
    int count = 0;
    for (int i = 0; i < 1000; i++)
    {
        var block = new Block(displayMode, content, Vector2D.Zero);
        if (block.ToString() == "OOOO/..../..../...." || block.ToString() == "O.../O.../O.../O...")
            count++;
    }

    Assert.AreEqual(100, count, 50);
}
See Also