예제 #1
0
        public void TestBuildRoad()
        {
            var target = new Player();

            target.incrementSettlements();
            target.generateBrick();
            target.generateLumber();

            target.buildRoad();

            Assert.AreEqual(0, target.getHand().getBrick());
            Assert.AreEqual(0, target.getHand().getLumber());
        }
예제 #2
0
 public void TestBuildRoadWithFreeRoadPoints()
 {
     var target = new Player();
     target.playerHand.modifyFreeRoadPoints(1);
     target.buildRoad();
 }
예제 #3
0
        public void TestGetRoadsPlayed()
        {
            var target = new Player();
            target.incrementCities();
            target.generateBrick();
            target.generateLumber();

            target.buildRoad();
            target.buildRoad();

            Assert.AreEqual(2, target.getRoadsPlayed());
        }