public void ShouldReturnTieStatus() { //Arrange FakePlayerTurnsOrderAction fakePlayerTurnsOrderAction = new FakePlayerTurnsOrderAction.Builder().Response(null).Build(); PlayerTurnsOrderAction subject = new PlayerTurnsOrderAction(fakePlayerTurnsOrderAction); //Act subject.Response(""); //Assert fakePlayerTurnsOrderAction.AssertResponseInvoked(); }
public void ShouldHaveExpectedOrder() { //Arrange ChainValidation chainValidation = new ChainValidation() .Add <HumanFirstPlayerTurn>() .Add <ComputerFirstPlayerTurn>(); //Act PlayerTurnsOrderAction subject = new PlayerTurnsOrderAction(); //Assert chainValidation.AssertExpectedChain(subject); }