Example #1
0
		public void CheckReceiveAttack()
		{
			var boss = new Boss(BossType.Cloak, Vector2D.Zero);
			boss.ReceiveAttack(TowerType.Fire, 50.0f);
			Assert.AreEqual(465.0f, boss.GetStatValue("Hp"));
		}
Example #2
0
		public void CheckReceiveAttackWithInactiveBoss()
		{
			var boss = new Boss(BossType.Cloak, Vector2D.Zero);
			boss.IsActive = false;
			boss.ReceiveAttack(TowerType.Fire, 100.0f);
			Assert.IsFalse(boss.IsActive);
			Assert.AreEqual(boss.GetStatValue("Hp"), boss.GetStatBaseValue("Hp"));
		}
Example #3
0
		public void CheckReceiveAttackWithDeadBoss()
		{
			var boss = new Boss(BossType.Cloak, Vector2D.Zero);
			boss.AdjustStat(new StatAdjustment("Hp", "", -500));
			boss.ReceiveAttack(TowerType.Fire, 100.0f);
			Assert.AreEqual(0.0f, boss.GetStatValue("Hp"));
		}