GraphTests RemovingGraphLineRemovesItsLines 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 RemovingGraphLineRemovesItsLines()
Examples

[Test, CloseAfterFirstFrame]
public void RemovingGraphLineRemovesItsLines()
{
    GraphLine line = graph.CreateLine("", LineColor);
    line.AddPoint(new Vector2D(-1.0f, -1.0f));
    line.AddPoint(new Vector2D(0.1f, 0.5f));
    Assert.AreEqual(1, graph.Lines.Count);
    Assert.AreEqual(1, line.lines.Count);
    graph.RemoveLine(line);
    Assert.AreEqual(0, graph.Lines.Count);
    Assert.AreEqual(0, line.lines.Count);
}
See Also