CircularBufferTests ExpectExceptionIfTryingToAddTooManyVertices Method Delta Engine Documentation

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

public void ExpectExceptionIfTryingToAddTooManyVertices()
Examples

[Test, CloseAfterFirstFrame]
public void ExpectExceptionIfTryingToAddTooManyVertices()
{
    const int NumberOfTooMuchVertices = CircularBuffer.TotalMaximumVerticesLimit + 1;
    var dummyVertices = new VertexPosition2DUV[1];
    Assert.Throws<CircularBuffer.TooManyVerticesForCircularBuffer>(
        () => buffer2D.Add(null, dummyVertices, new short[1], NumberOfTooMuchVertices, 1));
}
See Also