コード例 #1
0
        public void QuotesProviderCommentLinesTests_providedQuotesListWithCommentLinesShouldSkipThem(string content,
                                                                                                     int expectedGroupsCount)
        {
            contentProvider.SetLinesFromString(content);

            var actual = sut.GetQuotesList();

            Assert.Equal(actual.Groups[0].Quotes.Count, expectedGroupsCount);
        }
コード例 #2
0
        public void QuotesProviderGroupLinesTests_providedQuotesWithOneGroupShouldAddThemToTheGroup(string content,
                                                                                                    int expectedQuotesCount)
        {
            contentProvider.SetLinesFromString(content);

            var actual = sut.GetQuotesList();

            Assert.Equal(actual.Groups.Count, 1);
            Assert.Equal(actual.Groups[0].Quotes.Count, expectedQuotesCount);
        }
コード例 #3
0
 public void QuotesProvider_shouldReturnQuotesContainerObject()
 {
     Assert.NotNull(sut.GetQuotesList());
 }