Exemplo n.º 1
0
        public void ShouldThrowExceptionIfCannotDetermineAPlay()
        {
            var agent = new BeamStackAgent(5000, new WorstCaseNumberOfPlaysToGo());
            var state = TestUtilities.GenerateTestState(0, 0, 0, 0);

            Assert.ThrowsException <NoMoveFoundException>(() => agent.FormulatePlay(state));
        }
Exemplo n.º 2
0
        public void ShouldReturnPlay()
        {
            var agent = new BeamStackAgent(1, new WorstCaseNumberOfPlaysToGo());
            var state = TestUtilities.GenerateTestState();
            var play  = agent.FormulatePlay(state);

            Assert.IsNotNull(play);
        }