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 UpdateGameWithBallReleased() { if (!IsMockResolver) return; //ncrunch: no coverage var remBall = Resolve<TestBall>(); Resolve<Level>(); Resolve<MockKeyboard>().SetKeyboardState(Key.Space, State.Pressing); AdvanceTimeAndUpdateEntities(0.1f); if (remBall != null) Assert.IsFalse(remBall.IsCurrentlyOnPaddle); }
See Also