CreepPropertiesXmlTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class CreepPropertiesXmlTests : TestWithCreepyTowersMockContentLoaderOrVisually

The CreepPropertiesXmlTests type exposes the following members.

Constructors

  NameDescription
Public methodCreepPropertiesXmlTests
Initializes a new instance of the CreepPropertiesXmlTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeCreepyTowersMockContentLoader (Inherited from TestWithCreepyTowersMockContentLoaderOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodTestCreepPropertiesXml
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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