public void Test4() { var boardState = new List <PointState>[7] { new List <PointState>() { PointState.Black }, new List <PointState>() { PointState.Black }, new List <PointState>() { PointState.Black }, new List <PointState>() { PointState.Black }, new List <PointState>(), new List <PointState>(), new List <PointState>() }; var worker = new Worker(); Assert.IsTrue(worker.CalculateVictory(boardState, 2) == 1); }
public void Test7() { var boardState = new List <PointState>[7] { new List <PointState>() { PointState.White }, new List <PointState>() { PointState.White }, new List <PointState>() { PointState.White }, new List <PointState>(), new List <PointState>(), new List <PointState>(), new List <PointState>() }; var worker = new Worker(); Assert.IsTrue(worker.CalculateVictory(boardState, 0) == 0); }