Example #1
0
        private static void VerifyWordCount(Question2TestOutput output, string word, int expectedCount, int factor = 1)
        {
            int factoredExpectedCount = expectedCount * factor;

            if (!output.CheckWordCount(word, factoredExpectedCount))
            {
                Assert.Fail($"The word '{word}' should appear {factoredExpectedCount} times");
            }
        }