StatAdjustmentTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    CreepyTowers.Tests TestWithCreepyTowersMockContentLoaderOrVisually
      CreepyTowers.Tests CreepyTowersGameForTests
        CreepyTowers.Tests.Stats StatAdjustmentTests

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

public class StatAdjustmentTests : CreepyTowersGameForTests

The StatAdjustmentTests type exposes the following members.

Constructors

  NameDescription
Public methodStatAdjustmentTests
Initializes a new instance of the StatAdjustmentTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodConstructedFromXml
Public methodConstructor
Public methodDispose (Inherited from CreepyTowersGameForTests.)
Public methodInitialize (Inherited from CreepyTowersGameForTests.)
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.)
Top
Fields

  NameDescription
Protected fieldgame (Inherited from CreepyTowersGameForTests.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test]
public void Constructor()
{
    var effect = new StatAdjustment("Hp", "Armor", -50);
    Assert.AreEqual("Hp", effect.Attribute);
    Assert.AreEqual("Armor", effect.Resist);
    Assert.AreEqual(-50.0f, effect.Adjustment);
}
[Test]
public void ConstructedFromXml()
{
    var effect = new StatAdjustment("TestAdjustment");
    Assert.AreEqual("Hp", effect.Attribute);
    Assert.AreEqual("", effect.Resist);
    Assert.AreEqual(-100.0f, effect.Adjustment);
}
See Also