GroupPropertiesXmlTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
      CreepyTowers.Tests.Creeps GroupPropertiesXmlTests

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

public class GroupPropertiesXmlTests : TestWithCreepyTowersMockContentLoaderOrVisually

The GroupPropertiesXmlTests type exposes the following members.

Constructors

  NameDescription
Public methodGroupPropertiesXmlTests
Initializes a new instance of the GroupPropertiesXmlTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitialize
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 methodTestGroupPropertiesXml
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test, CloseAfterFirstFrame]
public void TestGroupPropertiesXml()
{
    var groupData = groupProperties.Get(CreepGroups.Paper2);
    Assert.AreEqual(0.5f, groupData.CreepSpawnInterval);
    Assert.AreEqual("Paper2", groupData.Name);
    var list = new List<CreepType> { CreepType.Paper, CreepType.Paper };
    Assert.AreEqual(list, groupData.CreepList);
}
See Also