Example #1
0
        public static void AssertGnawtyKillsPlayerLeft()
        {
            /*TEST 1:  Player vs Gnawty Left*/
            Player player = new Player();

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

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

            Assert.IsTrue(player.State is DKDeadState);
        }
Example #2
0
        public static void AssertPlayerKillsGnawty()
        {
            /*TEST 1:  Player vs Gnawty*/
            Player player = new Player();

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

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

            Gnawty testConcrete = (Gnawty)testObj;

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