Exemple #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));
 }
Exemple #2
0
 public void CanAssignAndRetrieveAPlayerPiece()
 {
     Human human = new Human();
     human.AssignMarker("X");
     Assert.AreEqual("X", human.GetMarker());
 }
Exemple #3
0
 public void CanAssignAndRetrieveAPlayersName()
 {
     Human human = new Human();
     human.AssignName("Bob");
     Assert.AreEqual("Bob", human.GetName());
 }