aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-16 20:51:57 +0800
committercrupest <crupest@outlook.com>2022-04-16 20:51:57 +0800
commit750785728f57af11dfc682ee9ee870e4dc191981 (patch)
tree1048476df9bb22bb538bc680273710ee6e56df40 /BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
parentf1f21a5fbdbbe952d35c353bb91c0c6263f336af (diff)
downloadtimeline-750785728f57af11dfc682ee9ee870e4dc191981.tar.gz
timeline-750785728f57af11dfc682ee9ee870e4dc191981.tar.bz2
timeline-750785728f57af11dfc682ee9ee870e4dc191981.zip
...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs b/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
index 12573a0c..4feb1da7 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
@@ -26,6 +26,15 @@ namespace Timeline.Tests.IntegratedTests2
}
[Fact]
+ public async Task UserPatchNotFound()
+ {
+ await AdminClient.TestJsonSendAsync(HttpMethod.Patch, "v2/users/notexist", new HttpUserPatchRequest
+ {
+ Nickname = "nick"
+ }, expectedStatusCode: HttpStatusCode.NotFound);
+ }
+
+ [Fact]
public async Task UserPatchUnauthorize()
{
await DefaultClient.TestJsonSendAsync(HttpMethod.Patch, "v2/users/user", new HttpUserPatchRequest