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(); }
public void ShouldHaveExpectedOrder() { //Arrange ChainValidation chainValidation = new ChainValidation() .Add <CurrentPlayerWinningSelectMoveAction>() .Add <RandomSpaceSelectMoveAction>(); //Act EasyComputerSelectMoveAction subject = new EasyComputerSelectMoveAction(); //Assert chainValidation.AssertExpectedChain(subject); }