Skip to content

Commit fce6297

Browse files
committed
Update packages
1 parent 37c7d1a commit fce6297

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

src/Nullforce.Api.Derpibooru.JsonModels.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="System.Text.Json" Version="4.7.1" />
27+
<PackageReference Include="System.Text.Json" Version="6.0.5" />
2828
</ItemGroup>
2929

3030
<ItemGroup>

tests/Nullforce.Api.Derpibooru.JsonModel.Tests/Integration/DeserializationTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public DeserializationTests()
2626
}
2727

2828
[Fact]
29-
public void CommentRoot_GetJson_SuccessWithoutExceptions()
29+
public async void CommentRoot_GetJson_SuccessWithoutExceptions()
3030
{
3131
// https://derpibooru.org/api/v1/json/comments/7093003
3232
var uri = _baseUri.AppendPathSegment("/comments/7093003");
@@ -42,7 +42,7 @@ public void CommentRoot_GetJson_SuccessWithoutExceptions()
4242

4343
using var _ = new AssertionScope();
4444

45-
act.Should().NotThrow();
45+
await act.Should().NotThrowAsync();
4646
commentRoot.Should().NotBeNull();
4747

4848
// Property validation
@@ -60,7 +60,7 @@ public void CommentRoot_GetJson_SuccessWithoutExceptions()
6060
}
6161

6262
[Fact]
63-
public void GallerySearchRoot_GetJson_SuccessWithoutExceptions()
63+
public async void GallerySearchRoot_GetJson_SuccessWithoutExceptions()
6464
{
6565
// https://derpibooru.org/api/v1/json/search/galleries?q=title:fluttershy
6666
var uri = _baseUri.AppendPathSegment("/search/galleries").SetQueryParam("q", "id:11972");
@@ -76,7 +76,7 @@ public void GallerySearchRoot_GetJson_SuccessWithoutExceptions()
7676

7777
using var _ = new AssertionScope();
7878

79-
act.Should().NotThrow();
79+
await act.Should().NotThrowAsync();
8080
gallerySearchRoot.Should().NotBeNull();
8181

8282
// Property validation
@@ -91,7 +91,7 @@ public void GallerySearchRoot_GetJson_SuccessWithoutExceptions()
9191
}
9292

9393
[Fact]
94-
public void ImageRoot_GetJson_SuccessWithoutExceptions()
94+
public async void ImageRoot_GetJson_SuccessWithoutExceptions()
9595
{
9696
// https://derpibooru.org/api/v1/json/images/1384692
9797
var uri = _baseUri.AppendPathSegment("/images/1384692");
@@ -107,7 +107,7 @@ public void ImageRoot_GetJson_SuccessWithoutExceptions()
107107

108108
using var _ = new AssertionScope();
109109

110-
act.Should().NotThrow();
110+
await act.Should().NotThrowAsync();
111111
imageRoot.Should().NotBeNull();
112112

113113
// Property validation
@@ -167,7 +167,7 @@ public void ImageRoot_GetJson_SuccessWithoutExceptions()
167167
}
168168

169169
[Fact]
170-
public void Oembed_GetJson_SuccessWithoutExceptions()
170+
public async void Oembed_GetJson_SuccessWithoutExceptions()
171171
{
172172
// https://derpibooru.org/api/v1/json/oembed?url=https://derpicdn.net/img/view/2017/3/11/1384692.png
173173
var uri = _baseUri.AppendPathSegment("/oembed").SetQueryParam("url", "https://derpicdn.net/img/view/2017/3/11/1384692.png");
@@ -181,7 +181,7 @@ public void Oembed_GetJson_SuccessWithoutExceptions()
181181

182182
using var _ = new AssertionScope();
183183

184-
act.Should().NotThrow();
184+
await act.Should().NotThrowAsync();
185185
oembed.Should().NotBeNull();
186186

187187
// Property validation
@@ -201,7 +201,7 @@ public void Oembed_GetJson_SuccessWithoutExceptions()
201201
}
202202

203203
[Fact]
204-
public void PostsSearchRoot_GetJson_SuccessWithoutExceptions()
204+
public async void PostsSearchRoot_GetJson_SuccessWithoutExceptions()
205205
{
206206
// https://derpibooru.org/api/v1/json/search/posts?q=id:4236623
207207
var uri = _baseUri.AppendPathSegment("/search/posts").SetQueryParam("q", "id:4236623");
@@ -217,7 +217,7 @@ public void PostsSearchRoot_GetJson_SuccessWithoutExceptions()
217217

218218
using var _ = new AssertionScope();
219219

220-
act.Should().NotThrow();
220+
await act.Should().NotThrowAsync();
221221
postsRoot.Should().NotBeNull();
222222

223223
// Property validation
@@ -234,7 +234,7 @@ public void PostsSearchRoot_GetJson_SuccessWithoutExceptions()
234234
}
235235

236236
[Fact]
237-
public void ProfileRootJson_GetJson_SuccessWithoutExceptions()
237+
public async void ProfileRootJson_GetJson_SuccessWithoutExceptions()
238238
{
239239
// https://derpibooru.org/api/v1/json/profiles/216494
240240
var uri = _baseUri.AppendPathSegment("profiles/216494");
@@ -250,7 +250,7 @@ public void ProfileRootJson_GetJson_SuccessWithoutExceptions()
250250

251251
using var _ = new AssertionScope();
252252

253-
act.Should().NotThrow();
253+
await act.Should().NotThrowAsync();
254254
profileRoot.Should().NotBeNull();
255255

256256
// Property validation
@@ -284,7 +284,7 @@ public void ProfileRootJson_GetJson_SuccessWithoutExceptions()
284284
}
285285

286286
[Fact]
287-
public void TagSearchRoot_GetJson_SuccessWithoutExceptions()
287+
public async void TagSearchRoot_GetJson_SuccessWithoutExceptions()
288288
{
289289
// https://derpibooru.org/api/v1/json/search/tags?q=id:27724
290290
var uri = _baseUri.AppendPathSegment("/search/tags").SetQueryParam("q", "id:27724");
@@ -300,7 +300,7 @@ public void TagSearchRoot_GetJson_SuccessWithoutExceptions()
300300

301301
using var _ = new AssertionScope();
302302

303-
act.Should().NotThrow();
303+
await act.Should().NotThrowAsync();
304304
tagsRoot.Should().NotBeNull();
305305

306306
// Property validation

tests/Nullforce.Api.Derpibooru.JsonModel.Tests/Nullforce.Api.Derpibooru.JsonModels.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
11-
<PackageReference Include="Flurl.Http" Version="2.4.2" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
13-
<PackageReference Include="xunit" Version="2.4.1" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
10+
<PackageReference Include="FluentAssertions" Version="6.7.0" />
11+
<PackageReference Include="Flurl.Http" Version="3.2.4" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
13+
<PackageReference Include="xunit" Version="2.4.2" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>

0 commit comments

Comments
 (0)