Esempio n. 1
0
 public void TestMapping()
 {
     var board = new Board();
     var position1 = board.getBoardElementForCoordinates(new OTMA.domain.Coordinate(3, 3));
     var position2 = board.getBoardElementForCoordinates(new OTMA.domain.Coordinate(2, 3));
     Assert.AreEqual(position2, position1.directions[OTMA.domain.Direction.North]);
 }
Esempio n. 2
0
 public void BoardTest()
 {
     var board = new Board();
     Assert.AreEqual(board.getAllAvailableBoardElements(), 25);
 }
Esempio n. 3
0
 public void TestRoomAndDoorAmount()
 {
     var board = new Board();
     Assert.AreEqual(board.getAllAvailableRooms().Count, 15);
     Assert.AreEqual(board.getAllAvailableDoors().Count, 14);
 }