PaddleTests IsBallReleasedAfterSpacePressed 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 IsBallReleasedAfterSpacePressed()
Examples

[Test, CloseAfterFirstFrame]
public void IsBallReleasedAfterSpacePressed()
{
    if (!IsMockResolver)
        return; //ncrunch: no coverage 
    var ball = Resolve<TestBall>();
    Resolve<Paddle>();
    PressSpaceOneTick();
    Assert.IsFalse(ball.IsCurrentlyOnPaddle);
    Assert.AreNotEqual(0.5f, ball.Position.X);
}
See Also