Esempio n. 1
0
        public static void CollisionTest(int rocketX, int playerX, int playerY, bool expected)
        {
            var rocket = new Rocket(rocketX);
            var player = new Player(playerX, playerY);

            while (rocket.Y <= 0)
            {
                rocket.Move();
            }
            var actual = rocket.CollidePlayer(player);

            Assert.AreEqual(expected, actual);
        }