Пример #1
0
        public void VerifyGetWordCountWorksWithNoWords()
        {
            // Arrange
            var handler = new DadJokeHandler(_jokeService.Object);

            // Act
            int count = handler.GetWordCount(string.Empty);

            // Assert
            Assert.IsTrue(count == 0);
        }
Пример #2
0
        public void VerifyGetWordCountWorks()
        {
            // Arrange
            var handler = new DadJokeHandler(_jokeService.Object);

            // Act
            int count = handler.GetWordCount("How now brown cow");

            // Assert
            Assert.IsTrue(count == 4);
        }