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

[Test, CloseAfterFirstFrame]
public void AddValueAddsToTheEnd()
{
    GraphLine line = CreateLineWithTwoPoints();
    line.AddValue(0.4f, 4.0f);
    Assert.AreEqual(new Vector2D(1.0f, 4.0f), line.points[2]);
    line.AddValue(3.0f);
    Assert.AreEqual(new Vector2D(2.0f, 3.0f), line.points[3]);
}
See Also