Esempio n. 1
0
 public void RotateLeft_FourTimesReturnsToBeginning()
 {
     List<Vector2> startPosition = new List<Vector2>() { new Vector2(3, 2), new Vector2(3, 1), new Vector2(3, 0) };
     IBlock block = new LetterIBlock();
     block.RotateLeft();
     block.RotateLeft();
     block.RotateLeft();
     block.RotateLeft();
     Assert.AreEqual(startPosition, (block.Shape(new Vector2(3, 2))));
 }
Esempio n. 2
0
 public void RotateLeft_Once()
 {
     IBlock block = new LetterIBlock();
     block.RotateLeft();
     Assert.AreEqual(new List<Vector2>() { new Vector2(3, 2), new Vector2(4, 2), new Vector2(5, 2) },(block.Shape(new Vector2(3, 2))));
 }