Exemple #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));
        }
Exemple #2
0
        public void ShouldReturnPlay()
        {
            var agent = new BeamAgent(1, new WorstCaseNumberOfPlaysToGo());
            var state = TestUtilities.GenerateTestState();
            var play  = agent.FormulatePlay(state);

            Assert.IsNotNull(play);
        }