From 71ad72b6d3db3937a2b769fe1d64c8bb99702ba1 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 18 Jun 2020 23:36:56 +0800 Subject: Add integrated tests. And fix a behavior. --- Timeline.Tests/Services/TimelineServiceTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Timeline.Tests/Services/TimelineServiceTest.cs') diff --git a/Timeline.Tests/Services/TimelineServiceTest.cs b/Timeline.Tests/Services/TimelineServiceTest.cs index cde827db..7e7242a2 100644 --- a/Timeline.Tests/Services/TimelineServiceTest.cs +++ b/Timeline.Tests/Services/TimelineServiceTest.cs @@ -115,8 +115,8 @@ namespace Timeline.Tests.Services } var posts = await _timelineService.GetPosts(timelineName, testPoint); - posts.Should().HaveCount(2) - .And.Subject.Select(p => (p.Content as TextTimelinePostContent).Text).Should().Equal(postContentList.Skip(2)); + posts.Should().HaveCount(3) + .And.Subject.Select(p => (p.Content as TextTimelinePostContent).Text).Should().Equal(postContentList.Skip(1)); } } } -- cgit v1.2.3