PaddleTests 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()
{
    var ball = Resolve<TestBall>();
    var paddle = Resolve<Paddle>();
    Assert.AreEqual(0.5f, paddle.Position.X);
    Assert.IsTrue(ball.IsCurrentlyOnPaddle);
    Assert.AreEqual(0.5f, ball.Position.X);
}
See Also