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
This commit is contained in:
Bond_009 2023-09-29 12:24:29 +02:00
parent ca5766dea5
commit 09965bc514
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<Import Project="..\_Imports\Test.targets" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
@ -18,7 +18,7 @@
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1" PrivateAssets="All" />
<PackageReference Include="Verify.Xunit" Version="14.14.1" />
<PackageReference Include="Verify.Xunit" Version="17.10.2" />
</ItemGroup>
<ItemGroup>

View File

@ -81,8 +81,8 @@ namespace TMDbLibTests.UtilityTests
else if (item.MediaType == MediaType.Season)
Assert.IsType<SearchTvSeason>(item.Media);
else
Assert.False(true, $"Unexpected type {item.GetType().Name}");
Assert.Fail($"Unexpected type {item.GetType().Name}");
});
}
}
}
}

View File

@ -3,7 +3,7 @@
<Import Project="..\_Imports\Test.targets" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>