Namespace: Blocks.Tests
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Blocks.Tests (in Blocks.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void CursorRightMovesBlockRight() { game.StartGame(); InitializeBlocks(game.Controller, content); mockKeyboard.SetKeyboardState(Key.CursorRight, State.Pressing); AdvanceTimeAndUpdateEntities(0.01f); if (IsMockResolver) //ncrunch: no coverage start return; Assert.AreEqual(8, game.Controller.FallingBlock.Left); //ncrunch: no coverage end }
See Also