コード例 #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");
        }