public static void Run(string text, IConsole console)
        {
            // Execute
            var result = NumberOfWords.RunUsingRegex(text);

            // Display result
            console.Out.WriteLine($"Result: { result }");
        }
Пример #2
0
        public void RunUsingRegex_WhenCalled_ReturnsValidResult(string text, int expected)
        {
            var actual = NumberOfWords.RunUsingRegex(text);

            Assert.Equal(expected, actual);
        }