public void TestingCheckForVictory_True() { //Arrange Board br = new Board(3); bool expected = true; //Act br.InitializeBoard(); br.NewMove(3, 1, 2); br.NewMove(1, 1, 1); br.NewMove(2, 2, 2); br.NewMove(3, 3, 1); br.NewMove(1, 3, 2); bool actual = br.CheckForVictory(1, 3); //Assert Assert.AreEqual(expected, actual); }
public void TestingNewMoveInput_SendingValueToLow() { //Arrange Board br = new Board(); var expected = false; //Act var actual = br.NewMove(0, 0, 0); // Sending in 0, not legal //Assert Assert.AreEqual(expected, actual); }
public void TestingNewMoveInput_SendingCoord_OutofRange_ToLow() { //Arrange Board br = new Board(); var expected = false; //Act var actual = br.NewMove(0, 0, 1);//Array cords -1,-1 //Assert Assert.AreEqual(expected, actual); }
public void TestingNewMoveInput_SendigCoord_OutofRange_ToHigh() { //Arrange Board br = new Board(); var expected = false; //Act var actual = br.NewMove(4, 5, 2); //Array coords 3,5 //Assert Assert.AreEqual(expected, actual); }
public void TestingNewMoveInput_SendigCoord_InRange() { //Arrange Board br = new Board(); var expected = true; //Act var actual = br.NewMove(2, 2, 1); //Array coords 1,1 //Assert Assert.AreEqual(expected, actual); }
public void TestingCurrentArrayValue_SendingInLegalValue() { //Arrange Board br = new Board(); var expected = 2; //Act br.NewMove(2, 2, 2); //Legal array coord 1,1 with legal with legal value var Array = br.GetArray(); var actual = Array[1, 1]; //Assert Assert.AreEqual(expected, actual); }