Exemple #1
0
        public static void AssertKlumpKillsPlayerRight()
        {
            /*TEST 3:  Player vs Klump Right*/
            Player player = new Player();

            player.Body.BottomCenter = new Vector2(300, 300);
            IGameObject testObj = new Klump();

            testObj.Body.BottomCenter = new Vector2(290, 300);

            Assert.IsTrue(player.State is DKDeadState);
        }
Exemple #2
0
        public static void AssertPlayerKillsKlump()
        {
            /*TEST 3:  Player vs Klump*/
            Player player = new Player();

            player.Body.BottomCenter = new Vector2(300, 300);
            IGameObject testObj = new Klump();

            testObj.Body.BottomCenter = new Vector2(300, 310);

            Klump testConcrete = (Klump)testObj;

            Assert.AreNotEqual(testConcrete.Body.Velocity.Y, 0);
        }