Ejemplo n.º 1
0
 public void CanMakeAMove()
 {
     Human human = new Human();
     string[] spaces = { "0", "1", "2", "3", "4", "5", "6", "7", "8"};
     TestHelper.SetInput("4");
     Assert.AreEqual(4, human.Move(spaces));
 }
Ejemplo n.º 2
0
 public void CanAssignAndRetrieveAPlayerPiece()
 {
     Human human = new Human();
     human.AssignMarker("X");
     Assert.AreEqual("X", human.GetMarker());
 }
Ejemplo n.º 3
0
 public void CanAssignAndRetrieveAPlayersName()
 {
     Human human = new Human();
     human.AssignName("Bob");
     Assert.AreEqual("Bob", human.GetName());
 }