예제 #1
0
 public void TestIncrementRoadsWhenFalse()
 {
     var target = new Player();
     for (int i = 0; i < 15; i++)
     {
         target.incrementRoads();
     }
     Assert.AreEqual(0, target.getRoadsRemaining());
     Assert.IsFalse(target.incrementRoads());
 }
예제 #2
0
 public void TestIncrementRoads()
 {
     var target = new Player();
     Assert.IsTrue(target.incrementRoads());
     Assert.AreEqual(14, target.getRoadsRemaining());
 }