Skip to content

Commit b6870f5

Browse files
author
Bart Koelman
committed
Add missing assertion comments
1 parent 88e2074 commit b6870f5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Relationships/UpdateToOneRelationshipTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
168168
// Act
169169
(HttpResponseMessage httpResponse, string responseDocument) = await _testContext.ExecutePatchAsync<string>(route, requestBody);
170170

171+
// Assert
171172
httpResponse.Should().HaveStatusCode(HttpStatusCode.NoContent);
172173

173174
responseDocument.Should().BeEmpty();
@@ -222,6 +223,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
222223
// Act
223224
(HttpResponseMessage httpResponse, string responseDocument) = await _testContext.ExecutePatchAsync<string>(route, requestBody);
224225

226+
// Assert
225227
httpResponse.Should().HaveStatusCode(HttpStatusCode.NoContent);
226228

227229
responseDocument.Should().BeEmpty();
@@ -760,6 +762,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
760762
// Assert
761763
httpResponse.Should().HaveStatusCode(HttpStatusCode.NoContent);
762764

765+
// Assert
763766
responseDocument.Should().BeEmpty();
764767

765768
await _testContext.RunOnDatabaseAsync(async dbContext =>

test/JsonApiDotNetCoreTests/IntegrationTests/ReadWrite/Updating/Resources/UpdateToOneRelationshipTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
114114
// Act
115115
(HttpResponseMessage httpResponse, string responseDocument) = await _testContext.ExecutePatchAsync<string>(route, requestBody);
116116

117+
// Assert
117118
httpResponse.Should().HaveStatusCode(HttpStatusCode.NoContent);
118119

119120
responseDocument.Should().BeEmpty();
@@ -283,6 +284,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
283284
// Act
284285
(HttpResponseMessage httpResponse, Document responseDocument) = await _testContext.ExecutePatchAsync<Document>(route, requestBody);
285286

287+
// Assert
286288
httpResponse.Should().HaveStatusCode(HttpStatusCode.OK);
287289

288290
responseDocument.Data.SingleValue.ShouldNotBeNull();

0 commit comments

Comments
 (0)