@Test public void middleTest() { Direction[] expectedDirections = { Down.getInstance(), Up.getInstance(), Right.getInstance(), Left.getInstance() }; positionTest(Middle.getInstance(), expectedDirections); }
@Test public void UpOppositeTest() { assertTrue(Up.getInstance().opposite() == Down.getInstance()); }
@Test public void DownOppositeTest() { assertTrue(Down.getInstance().opposite() == Up.getInstance()); }
@Test public void topRightCornerTest() { Direction[] expectedDirections = {Down.getInstance(), Left.getInstance()}; positionTest(TopRightCorner.getInstance(), expectedDirections); }
@Test public void topEdgeTest() { Direction[] expectedDirections = {Down.getInstance(), Right.getInstance(), Left.getInstance()}; positionTest(TopEdge.getInstance(), expectedDirections); }