From 0aa43ef4c6724f672453676a0c688cd80097dad7 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 9 Apr 2022 18:53:52 +0800 Subject: ... --- BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs | 5 +++-- BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest2.cs | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'BackEnd/Timeline.Tests/IntegratedTests2') diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs index 4ecb805c..d06da9d9 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest1.cs @@ -72,8 +72,9 @@ namespace Timeline.Tests.IntegratedTests2 public async Task ListTest() { using var client = CreateClientAsUser(); - var posts = await client.TestJsonSendAsync>(HttpMethod.Get, "v2/timelines/user/hello/posts"); - posts.Should().HaveCount(3); + var posts = await client.TestJsonSendAsync>(HttpMethod.Get, "v2/timelines/user/hello/posts"); + posts.TotalCount.Should().Be(3); + posts.Items.Should().HaveCount(3); } [Fact] diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest2.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest2.cs index 9aaae21a..993e9353 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest2.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelinePostTest2.cs @@ -124,6 +124,7 @@ namespace Timeline.Tests.IntegratedTests2 { using var client = CreateClientAsUser(); await client.TestSendAsync(HttpMethod.Delete, "v2/timelines/user/hello/posts/1", expectedStatusCode: HttpStatusCode.NoContent); + await client.TestSendAsync(HttpMethod.Get, "v2/timelines/user/hello/posts/1", expectedStatusCode: HttpStatusCode.Gone); } [Fact] -- cgit v1.2.3