BallTests Draw Method Delta Engine Documentation

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

public void Draw()
Examples

[Test]
public void Draw()
{
    Resolve<TestBall>();
}
[Test, CloseAfterFirstFrame]
public void GetDrawPosition()
{
    var ball = Resolve<TestBall>();
    Resolve<Paddle>();
    AdvanceTimeAndUpdateEntities(0.01f);
    Assert.IsTrue(new Rectangle(0.48f, 0.84f, 0.04f, 0.04f).IsNearlyEqual(ball.DrawArea));
}
See Also