Line2DTests AddLineToEntitySystem Method Delta Engine Documentation

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

public void AddLineToEntitySystem()
Examples

[Test]
public void AddLineToEntitySystem()
{
    new Line2D(Vector2D.Zero, Vector2D.One, Color.Red);
    RunAfterFirstFrame(
        () => Assert.AreEqual(2, Resolve<Drawing>().NumberOfDynamicVerticesDrawnThisFrame));
}
See Also