Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
Drench.Tests DrenchMenuTests
Namespace: Drench.Tests
Assembly: Drench.Tests (in Drench.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The DrenchMenuTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DrenchMenuTests | Initializes a new instance of the DrenchMenuTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
ChangeGameWidth | ||
ClickHumanVsDumbAiLogic | ||
ClickHumanVsSmartAiLogic | ||
ClickSingleHumanGame | ||
ClickTwoHumanGame | ||
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
NetworkGame | ||
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
Setup |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test, CloseAfterFirstFrame, Ignore] public void ClickSingleHumanGame() { ClickMouse(new Vector2D(0.11f, 0.26f)); Assert.AreEqual(typeof(SingleHumanGame), menu.game.GetType()); }
[Test, CloseAfterFirstFrame, Ignore] public void ClickHumanVsDumbAiLogic() { ClickMouse(new Vector2D(0.11f, 0.34f)); Assert.AreEqual(typeof(HumanVsAiGame), menu.game.GetType()); }
[Test, CloseAfterFirstFrame, Ignore] public void ClickHumanVsSmartAiLogic() { ClickMouse(new Vector2D(0.11f, 0.43f)); Assert.AreEqual(typeof(HumanVsAiGame), menu.game.GetType()); }
[Test, CloseAfterFirstFrame, Ignore] public void ClickTwoHumanGame() { ClickMouse(new Vector2D(0.11f, 0.51f)); Assert.AreEqual(typeof(TwoHumanGame), menu.game.GetType()); }
[Test, CloseAfterFirstFrame, Ignore] public void ChangeGameWidth() { Assert.AreEqual("Board Size: 10 x 10", menu.boardSize.Text); SetMouseState(State.Pressing, new Vector2D(0.75f, 0.31f)); SetMouseState(State.Pressed, new Vector2D(0.8f, 0.31f)); SetMouseState(State.Released, new Vector2D(0.8f, 0.31f)); if (!IsMockResolver) return; Assert.AreEqual("Board Size: 12 x 10", menu.boardSize.Text); SetMouseState(State.Pressing, new Vector2D(0.75f, 0.376f)); SetMouseState(State.Pressed, new Vector2D(0.8f, 0.376f)); SetMouseState(State.Released, new Vector2D(0.8f, 0.376f)); Assert.AreEqual("Board Size: 12 x 12", menu.boardSize.Text); }
[Test, CloseAfterFirstFrame, Ignore] public void NetworkGame() { ClickMouse(new Vector2D(0.11f, 0.6f)); ClickMouse(new Vector2D(0.11f, 0.68f)); }
See Also