Ejemplo n.º 1
0
 public void TestHasFreePort()
 {
     var target = new Player();
     Assert.IsFalse(target.hasAFreePort());
     target.addPort(new Port("Grain", 2));
     target.addPort(new Port("Anything", 3));
     Assert.IsTrue(target.hasAFreePort());
 }
Ejemplo n.º 2
0
 public void TestAddPort()
 {
     var target = new Player();
     target.addPort(new Port("Anything", 3));
     Assert.IsTrue(target.hasAFreePort());
 }