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

[Test, CloseAfterFirstFrame]
public void ChangeOutlineColor()
{
    var polygon = new Polygon2D(Rectangle.One, Color.Red);
    polygon.Add(new OutlineColor(Color.Blue));
    Assert.AreEqual(Color.Blue, polygon.Get<OutlineColor>().Value);
}
See Also