public void TestDyingOutside() { var game = new Game(200, 200); var bagel = new BagelEnemy(BagelType.Basic, game, game, 50, 50, -100, -100); Assert.IsFalse(bagel.IsDead); bagel.Move(); Assert.IsTrue(bagel.IsDead); }
public void TestBouncing() { var game = new Game(200, 200); var bagel = new BagelEnemy(BagelType.Bouncing, game, game, 50, 50, -100, -100); Assert.IsFalse(bagel.IsDead); bagel.Move(); Assert.IsFalse(bagel.IsDead); Assert.AreEqual(100, bagel.VelX); Assert.AreEqual(100, bagel.VelY); }