Exemplo n.º 1
0
        public void UpdatePosition_SlantedBullet_OutofBounds_Despawn()
        {
            Slanted_Bullet test = new Slanted_Bullet(20, 20, 50);

            test.id = ID.Hostile;

            test.X = 1201;
            test.UpdatePosition();

            Assert.IsTrue(test.alive == false);

            test.alive = true;

            test.X = -2000;
            test.UpdatePosition();

            Assert.IsTrue(test.alive == false);
        }
Exemplo n.º 2
0
        public void UpdatePosition_SlantedBullet_Friendly_Success()
        {
            Slanted_Bullet test = new Slanted_Bullet(20, 20, 50);

            test.UpdatePosition();

            Assert.IsTrue(test.X > 20);
            Assert.IsTrue(test.Y > 20);
        }
Exemplo n.º 3
0
        public void UpdatePosition_SlantedBullet_Hostile_Success()
        {
            Slanted_Bullet test = new Slanted_Bullet(20, 20, 50);

            test.id = ID.Hostile;
            test.UpdatePosition();

            Assert.IsTrue(test.X > 20);
            Assert.IsTrue(test.Y > 20);
        }