Namespace: Breakout.Tests
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void FireBall() { if (!IsMockResolver) return; //ncrunch: no coverage var ball = Resolve<Ball>(); Assert.IsTrue(ball.IsVisible); AdvanceTimeAndUpdateEntities(0.1f); var initialBallPosition = new Vector2D(0.5f, 0.86f); Assert.AreEqual(initialBallPosition, ball.Position); Resolve<MockKeyboard>().SetKeyboardState(Key.Space, State.Pressing); AdvanceTimeAndUpdateEntities(0.1f); Assert.AreNotEqual(initialBallPosition, ball.Position); }
See Also