public static void AssertNeckyKillsPlayerRight() { /*TEST 4: Player vs Necky Right*/ Player player = new Player(); player.Body.BottomCenter = new Vector2(300, 300); IGameObject testObj = new Necky(); testObj.Body.BottomCenter = new Vector2(290, 300); Assert.IsTrue(player.State is DKDeadState); }
public static void AssertPlayerKillsNecky() { /*TEST 4: Player vs Necky*/ Player player = new Player(); player.Body.BottomCenter = new Vector2(300, 300); IGameObject testObj = new Necky(); testObj.Body.BottomCenter = new Vector2(300, 310); Necky testConcrete = (Necky)testObj; Assert.AreNotEqual(testConcrete.Body.Velocity.Y, 0); }