public void RequestActionOnFullBoardIsNull() { IBoard board = new Board(1, 1); PlayerBase p = new MockPlayer("Hank", 'X', board); board.MarkPosition(0, 0, 'O'); IGameAction action = p.RequestAction(); Assert.Null(action); }
public void RequestActionOnEmptyBoardIsFirstSpotAvailable() { IBoard board = new Board(1, 1); PlayerBase p = new MockPlayer("Hank", 'X', board); IGameAction action = p.RequestAction(); Assert.AreEqual(0, action.Row); Assert.AreEqual(0, action.Column); Assert.AreEqual('X', action.Marker); }