Polygon2DTests NoErrorIfThereAreNoVertices 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 NoErrorIfThereAreNoVertices()
Examples

[Test]
public void NoErrorIfThereAreNoVertices()
{
    var entity = new Entity2D(Rectangle.One);
    entity.Add(new OutlineColor(Color.Red));
    Assert.DoesNotThrow(entity.OnDraw<DrawPolygon2DOutlines>);
}
See Also