コード例 #1
0
        public void Should_Return_Histogram_When_Good_Text_With_Punctuation_Is_Provided(string text)
        {
            // act
            IDictionary <string, int> result = BigramParser.ParseBigrams(text);

            // assert
            VerifyQuickBrownFoxResultsAreAsExpected(result);
        }
コード例 #2
0
        public void Should_Return_Empty_Dictionary_When_Invalid_Text_Argument_Provided(string text)
        {
            // act
            IDictionary <string, int> result = BigramParser.ParseBigrams(text);

            // assert
            Assert.Empty(result);
        }