Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
CreepyTowers.Tests CreepyTowersGameForTests
CreepyTowers.Tests.Collectables CoinTests
Namespace: CreepyTowers.Tests.Collectables
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The CoinTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | CoinTests | Initializes a new instance of the CoinTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | CollectCoin | |
![]() | Dispose | (Inherited from CreepyTowersGameForTests.) |
![]() | Initialize | (Inherited from CreepyTowersGameForTests.) |
![]() | InitializeCreepyTowersMockContentLoader | (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.) |
![]() | InitializeResolver | (Inherited from TestWithMocksOrVisually.) |
![]() | InitialValues | |
![]() | RegisterMock T | (Inherited from TestWithMocksOrVisually.) |
![]() | Resolve T | (Inherited from TestWithMocksOrVisually.) |
![]() | RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) |
![]() | RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
![]() | SetUp |
Fields
Name | Description | |
---|---|---|
![]() | game | (Inherited from CreepyTowersGameForTests.) |
Properties
Name | Description | |
---|---|---|
![]() | IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void InitialValues() { Assert.AreEqual(new Vector3D(1, 2, 3), coin.Position); }
[Test] public void CollectCoin() { var player = new Player(); coin.Collect(); Assert.AreEqual(4, player.Gold); }
See Also