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

[Test, CloseAfterFirstFrame]
public void TwoPointsDrawALine()
{
    GraphLine line = CreateLineWithTwoPoints();
    Assert.AreEqual(2, line.points.Count);
    Assert.AreEqual(1, line.lines.Count);
    Line2D line2D = line.lines[0];
    Assert.IsTrue(line2D.StartPoint.IsNearlyEqual(new Vector2D(0.462f, 0.5f)));
    Assert.IsTrue(line2D.EndPoint.IsNearlyEqual(new Vector2D(0.538f, 0.462f)));
    Assert.AreEqual(LineColor, line.Color);
}
See Also