Exemple #1
0
        public void ShouldInvokeAct()
        {
            //Arrange
            FakeSelectMoveAction         nextAction = new FakeSelectMoveAction.Builder().Act(null).Build();
            EasyComputerSelectMoveAction subject    = new EasyComputerSelectMoveAction(nextAction);

            //Act
            subject.Act(null, null, null);

            //Assert
            nextAction.AssertActInvoked();
        }
Exemple #2
0
        public void ShouldHaveExpectedOrder()
        {
            //Arrange
            ChainValidation chainValidation = new ChainValidation()
                                              .Add <CurrentPlayerWinningSelectMoveAction>()
                                              .Add <RandomSpaceSelectMoveAction>();

            //Act
            EasyComputerSelectMoveAction subject = new EasyComputerSelectMoveAction();

            //Assert
            chainValidation.AssertExpectedChain(subject);
        }