Namespace: DeltaEngine.GameLogic.Tests
Assembly: DeltaEngine.GameLogic.Tests (in DeltaEngine.GameLogic.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.GameLogic.Tests (in DeltaEngine.GameLogic.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void TestIsInsideLevelGrid() { var level = new MockLevel(new Size(3)); Assert.IsTrue(level.IsInsideLevelGrid(new Vector2D(0, 0))); Assert.IsTrue(level.IsInsideLevelGrid(new Vector2D(1, 1))); Assert.IsTrue(level.IsInsideLevelGrid(new Vector2D(3, 3))); Assert.IsFalse(level.IsInsideLevelGrid(new Vector2D(-0.1f, -0.1f))); Assert.IsFalse(level.IsInsideLevelGrid(new Vector2D(3.1f, 3.1f))); }
See Also