示例#1
0
        public void LetterAsk_ReturnsFalse_IfWordHasNoLetter()
        {
            input.ReadLine().Returns("b");
            var letterAsk = new LetterAsk(input, output);

            letterAsk.Ask(state).Should().BeFalse();
        }
示例#2
0
        public void LetterAsk_ReadsAgain_IfEmptyStringGiven()
        {
            var letterAsk = new LetterAsk(input, output);

            letterAsk.Ask(state);
            input.Received(2).ReadLine();
            output.Received().WriteLine(Arg.Any <string>());
        }
示例#3
0
        public void LetterAsk_ReturnsTrue_IfWordHasLetter()
        {
            var letterAsk = new LetterAsk(input, output);

            letterAsk.Ask(state).Should().BeTrue();
        }