CreepPropertiesXmlTests TestCreepPropertiesXml Method Delta Engine Documentation

Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void TestCreepPropertiesXml()
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