Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
CreepyTowers.Tests.Creeps CreepPropertiesXmlTests
Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The CreepPropertiesXmlTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CreepPropertiesXmlTests | Initializes a new instance of the CreepPropertiesXmlTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
InitializeCreepyTowersMockContentLoader | (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.) | |
InitializeResolver | (Inherited from TestWithMocksOrVisually.) | |
RegisterMock T | (Inherited from TestWithMocksOrVisually.) | |
Resolve T | (Inherited from TestWithMocksOrVisually.) | |
RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) | |
RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) | |
TestCreepPropertiesXml |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test, CloseAfterFirstFrame] public void TestCreepPropertiesXml() { var creepProperties = ContentLoader.Load<CreepPropertiesXml>(Xml.CreepProperties.ToString()); var creepData = creepProperties.Get(CreepType.Cloth); Assert.AreEqual(CreepType.Cloth, creepData.Type); Assert.AreEqual(100, creepData.MaxHp); Assert.AreEqual(10, creepData.Resistance); Assert.AreEqual(1, creepData.Speed); Assert.AreEqual(13, creepData.GoldReward); }
See Also