public static void CollisionTest(int barrierX, int barrierY, int playerX, int playerY, bool expected) { var barrier = new Barrier(barrierX, barrierY); var player = new Player(playerX, playerY); var actual = barrier.CollidePlayer(player); Assert.AreEqual(expected, actual); }