diff options
author | crupest <crupest@outlook.com> | 2020-08-21 23:47:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 23:47:10 +0800 |
commit | 733b8291855d1498e0ba9bc36a47a1b5f8b612ad (patch) | |
tree | 4885b9f7e828ec3f0ae7e2acacf348c9f5c158d9 /Timeline.Tests/IntegratedTests/TimelineTest.cs | |
parent | dc363ad8ae654af056c9ffa551008dbbf52b5d57 (diff) | |
parent | f1c70edd559c72dcb47ff647f3f03ba5ae9a56cc (diff) | |
download | timeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.tar.gz timeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.tar.bz2 timeline-733b8291855d1498e0ba9bc36a47a1b5f8b612ad.zip |
Merge pull request #149 from crupest/swagger
Swagger/OpenAPI
Diffstat (limited to 'Timeline.Tests/IntegratedTests/TimelineTest.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/TimelineTest.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Timeline.Tests/IntegratedTests/TimelineTest.cs b/Timeline.Tests/IntegratedTests/TimelineTest.cs index 16b3c7e4..3b4b1754 100644 --- a/Timeline.Tests/IntegratedTests/TimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/TimelineTest.cs @@ -76,20 +76,20 @@ namespace Timeline.Tests.IntegratedTests if (subpath != null)
{
if (!subpath.StartsWith("/", StringComparison.OrdinalIgnoreCase))
- result.Append("/");
+ result.Append('/');
result.Append(subpath);
}
if (query != null && query.Count != 0)
{
- result.Append("?");
+ result.Append('?');
foreach (var (key, value, index) in query.Select((pair, index) => (pair.Key, pair.Value, index)))
{
result.Append(WebUtility.UrlEncode(key));
- result.Append("=");
+ result.Append('=');
result.Append(WebUtility.UrlEncode(value));
if (index != query.Count - 1)
- result.Append("&");
+ result.Append('&');
}
}
|