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

[Test, CloseAfterFirstFrame]
public void RefreshDoesNothingIfViewportDidntChange()
{
    GraphLine line = CreateLineWithTwoPoints();
    Vector2D start = line.lines[0].StartPoint;
    Vector2D end = line.lines[0].EndPoint;
    line.Refresh();
    Assert.AreEqual(start, line.lines[0].StartPoint);
    Assert.AreEqual(end, line.lines[0].EndPoint);
}
See Also