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

[Test, CloseAfterFirstFrame]
public void ClearRemovesAllLinesAndClearsAllPoints()
{
    GraphLine line = CreateLineWithTwoPoints();
    Line2D line2D = line.lines[0];
    Assert.IsTrue(line2D.IsActive);
    line.Clear();
    Assert.AreEqual(0, line.lines.Count);
    Assert.AreEqual(0, line.points.Count);
}
See Also