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

[Test, CloseAfterFirstFrame]
public void WhenOnlyOnePointHasBeenAddedViewportPositionsToThatPoint()
{
    line.AddPoint(new Vector2D(1.0f, -2.5f));
    AdvanceTimeAndUpdateEntities();
    Assert.AreEqual(new Rectangle(1.0f, -2.5f, 0.0f, 0.0f), graph.Viewport);
}
See Also