AutogrowViewportTests IfViewportDoesNotNeedToChangeToAccomodateNewPointsItDoesnt 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 IfViewportDoesNotNeedToChangeToAccomodateNewPointsItDoesnt()
Examples

[Test, CloseAfterFirstFrame]
public void IfViewportDoesNotNeedToChangeToAccomodateNewPointsItDoesnt()
{
    line.AddPoint(new Vector2D(0, -2.5f));
    line.AddPoint(new Vector2D(2, -1.0f));
    line.AddPoint(new Vector2D(1, -1.5f));
    AdvanceTimeAndUpdateEntities();
    Assert.IsTrue(graph.Viewport.IsNearlyEqual(new Rectangle(-0.1f, -2.575f, 2.2f, 1.65f)));
}
See Also