예제 #1
0
파일: BoardTest.cs 프로젝트: paeh/OTMA
 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]);
 }
예제 #2
0
파일: TestBoard.cs 프로젝트: paeh/OTMA
 public void BoardTest()
 {
     var board = new Board();
     Assert.AreEqual(board.getAllAvailableBoardElements(), 25);
 }
예제 #3
0
파일: BoardTest.cs 프로젝트: paeh/OTMA
 public void TestRoomAndDoorAmount()
 {
     var board = new Board();
     Assert.AreEqual(board.getAllAvailableRooms().Count, 15);
     Assert.AreEqual(board.getAllAvailableDoors().Count, 14);
 }