Example #1
0
        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);
        }
Example #2
0
        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);
        }