From 09965bc514092037059c0cd3f33845042b16c6fb Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Fri, 29 Sep 2023 12:24:29 +0200 Subject: [PATCH] Update test projects to .NET7 and update VerifyTests 17.10.2 is that last version that doesn't use a forked newtonsoft.json Also fixes a XUnit warning --- TMDbLibTests/TMDbLibTests.csproj | 4 ++-- TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs | 4 ++-- TestApplication/TestApplication.csproj | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TMDbLibTests/TMDbLibTests.csproj b/TMDbLibTests/TMDbLibTests.csproj index f661369e..f99cc8b7 100644 --- a/TMDbLibTests/TMDbLibTests.csproj +++ b/TMDbLibTests/TMDbLibTests.csproj @@ -3,7 +3,7 @@ - net5.0 + net7.0 @@ -18,7 +18,7 @@ - + diff --git a/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs b/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs index 50516389..6a26b5e4 100644 --- a/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs +++ b/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs @@ -81,8 +81,8 @@ public async Task TestJsonTaggedImageConverter(int personId) else if (item.MediaType == MediaType.Season) Assert.IsType(item.Media); else - Assert.False(true, $"Unexpected type {item.GetType().Name}"); + Assert.Fail($"Unexpected type {item.GetType().Name}"); }); } } -} \ No newline at end of file +} diff --git a/TestApplication/TestApplication.csproj b/TestApplication/TestApplication.csproj index b71ef819..f0a6bbd9 100644 --- a/TestApplication/TestApplication.csproj +++ b/TestApplication/TestApplication.csproj @@ -3,7 +3,7 @@ - net5.0 + net7.0 Exe