public void ShouldThrowExceptionIfCannotDeterminePlay() { var agent = new BeamAgent(1, new WorstCaseNumberOfPlaysToGo()); var state = TestUtilities.GenerateTestState(0, 0, 0, 0); Assert.ThrowsException <NoMoveFoundException>(() => agent.FormulatePlay(state)); }
public void ShouldReturnPlay() { var agent = new BeamAgent(1, new WorstCaseNumberOfPlaysToGo()); var state = TestUtilities.GenerateTestState(); var play = agent.FormulatePlay(state); Assert.IsNotNull(play); }