Пример #1
0
		public void PerformBuff()
		{
			var effect = new BuffEffect("TestHpBuff");
			var interaction = new Interaction(tower, creep, adjustment, effect);
			interaction.Apply();
			Assert.AreEqual(204.0f, creep.GetStatValue("Hp"));
		}
Пример #2
0
		public void Constructor()
		{
			var effect = new BuffEffect("TestHpBuff");
			var interaction = new Interaction(tower, creep, adjustment, effect);
			Assert.AreEqual(tower, interaction.Source);
			Assert.AreEqual(creep, interaction.Target);
		}
Пример #3
0
		public void PerformAdjustment()
		{
			var interaction = new Interaction(tower, creep, adjustment);
			interaction.Apply();
			Assert.AreEqual(0.0f, creep.GetStatValue("Hp"));
		}