public void Play_PlaysUntilAllShipsSank_Parameterless() { // arrange var guess1 = "A1"; _stateBuilder.Build(initialState, guess1).Returns(state1); var guess2 = "A2"; _stateBuilder.Build(state1, guess2).Returns(state2); var guess3 = "A3"; _stateBuilder.Build(state2, guess3).Returns(state3); _console.ReadLine().Returns(guess1, guess2, guess3); // act _serviceUnderTests.Play(); // assert Assert.IsTrue(_serviceUnderTests.IsFinished()); }
public void WhenGamePlaysSingleRound() { _game.Play(); }