Inheritance Hierarchy
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
The StatAdjustmentTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StatAdjustmentTests | Initializes a new instance of the StatAdjustmentTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
ConstructedFromXml | ||
Constructor | ||
Dispose | (Inherited from CreepyTowersGameForTests.) | |
Initialize | (Inherited from CreepyTowersGameForTests.) | |
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.) |
Fields
Name | Description | |
---|---|---|
game | (Inherited from CreepyTowersGameForTests.) |
Properties
Name | Description | |
---|---|---|
IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
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