SnakeTests CheckTrailingVector Method Delta Engine Documentation

Namespace: Snake.Tests
Assembly: Snake.Tests (in Snake.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckTrailingVector()
Examples

[Test, CloseAfterFirstFrame]
public void CheckTrailingVector()
{
    var snake = new Snake(gridSize, Color.Green);
    Assert.IsTrue(snake.Get<Body>().GetTrailingVector().IsNearlyEqual(new Vector2D(0, blockSize)));
}
See Also