public void TestMethodShapeL_MoveRight() { //arrange IBoard board = new Board(); ShapeL shape = new ShapeL(board); //act shape.MoveRight(); //assert Assert.AreEqual(5, shape[0].Position.X); Assert.AreEqual(1, shape[0].Position.Y); Assert.AreEqual(5, shape[1].Position.X); Assert.AreEqual(0, shape[1].Position.Y); Assert.AreEqual(6, shape[2].Position.X); Assert.AreEqual(0, shape[2].Position.Y); Assert.AreEqual(7, shape[3].Position.X); Assert.AreEqual(0, shape[3].Position.Y); }
public void TestShapeL_AllRight() { //arrange IBoard board = new Board(); ShapeL shape = new ShapeL(board); //act shape.MoveRight(); shape.MoveRight(); shape.MoveRight(); shape.MoveRight(); shape.MoveRight(); //assert Assert.AreEqual(new Point(7, 1), shape[0].Position); Assert.AreEqual(new Point(7, 0), shape[1].Position); Assert.AreEqual(new Point(8, 0), shape[2].Position); Assert.AreEqual(new Point(9, 0), shape[3].Position); }