예제 #1
0
        public void ShouldThrowExceptionIfCannotDeterminePlay()
        {
            var agent = new BeamAgent(1, new WorstCaseNumberOfPlaysToGo());
            var state = TestUtilities.GenerateTestState(0, 0, 0, 0);

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

            Assert.IsNotNull(play);
        }