GraphLineTests AddingFirstPointDoesntCreateALine 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 AddingFirstPointDoesntCreateALine()
Examples

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