diff options
author | crupest <crupest@outlook.com> | 2020-06-18 23:36:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-18 23:36:56 +0800 |
commit | 71ad72b6d3db3937a2b769fe1d64c8bb99702ba1 (patch) | |
tree | 6d5e383ad6f135ec40fc69f0f1fa16bfa2c56656 /Timeline.Tests/Services | |
parent | ff9ac16d3ffe182d2429a6511ba61be67ed56a1c (diff) | |
download | timeline-71ad72b6d3db3937a2b769fe1d64c8bb99702ba1.tar.gz timeline-71ad72b6d3db3937a2b769fe1d64c8bb99702ba1.tar.bz2 timeline-71ad72b6d3db3937a2b769fe1d64c8bb99702ba1.zip |
Add integrated tests. And fix a behavior.
Diffstat (limited to 'Timeline.Tests/Services')
-rw-r--r-- | Timeline.Tests/Services/TimelineServiceTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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));
}
}
}
|