BouncingLogoTests Drawing100LogosOnlyCauseOneDrawCall Method Delta Engine Documentation

Namespace: LogoApp.Tests
Assembly: LogoApp.Tests (in LogoApp.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Drawing100LogosOnlyCauseOneDrawCall()
Examples

[Test]
public void Drawing100LogosOnlyCauseOneDrawCall()
{
    for (int i = 0; i < 100; i++)
        new BouncingLogo();
    RunAfterFirstFrame(() =>
    {
        Assert.AreEqual(1, Resolve<Drawing>().NumberOfDynamicDrawCallsThisFrame);
        Assert.AreEqual(100 * 4, Resolve<Drawing>().NumberOfDynamicVerticesDrawnThisFrame);
    });
}
See Also