GraphLineTests CheckLineColor Method Delta Engine Documentation

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

public void CheckLineColor()
Examples

[Test, CloseAfterFirstFrame]
public void CheckLineColor()
{
    var line = graph.CreateLine("", Color.Blue);
    line.AddPoint(Vector2D.Zero);
    line.AddPoint(Vector2D.One);
    Assert.AreEqual(Color.Blue, line.Color);
    Assert.AreEqual(Color.Blue, line.lines[0].Color);
    line.Color = Color.Green;
    Assert.AreEqual(Color.Green, line.Color);
}
See Also