public void WritesFoundCombinationsFromReadWords() { A.CallTo(() => _wordListReaderFactory.Create(_settings)).Returns(_wordListReader); A.CallTo(() => _wordCombinationFinderFactory.Create(_settings)).Returns(_wordCombinationFinder); A.CallTo(() => _wordListReader.ReadWordList()).Returns(_allWords); A.CallTo(() => _wordCombinationFinder.FindCombinations(_allWords)).Returns(_foundCombinations); _sut.Run(); A.CallTo(() => _outputWriter.Write(_foundCombinations)).MustHaveHappened(); }