예제 #1
0
 public void GivenGoWordsAreFound_ThenWordValidatorIsCalledWithAllGoWords()
 {
     GivenCandidateWithPattern("a???e");
     GivenMainWords("apple");
     GivenGoWordsForMainWord("apple", "apple", "ape", "eel");
     GivenWordsAreInTheDictionary("apple", "ape", "eel");
     WhenHandleGo();
     wordValidator.Received().IsWord("apple");
     wordValidator.Received().IsWord("ape");
     wordValidator.Received().IsWord("eel");
 }
예제 #2
0
        public void GivenAMessage_ThenWordValidatorIsCalled()
        {
            var message = new IsWordRequestMessage()
            {
                Word = "plus"
            };

            requestHandler.IsWord(message);
            wordValidator.Received(1).IsWord("plus");
        }