Only use IReadOnlySet in .NET 5, ICollection for other targets

forgot AppVeyor compiles the test project for .NET Core 3.1
This commit is contained in:
YoshiRulz 2021-04-02 19:52:51 +10:00
parent 71cb9a8805
commit c5802e9154
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 0 deletions

View File

@ -13,7 +13,11 @@ namespace BizHawk.Tests.Client.Common.config
[TestClass]
public sealed class SerializationStabilityTests
{
#if NET5_0
private static readonly IReadOnlySet<Type> KnownGoodFromStdlib = new HashSet<Type>
#else
private static readonly ICollection<Type> KnownGoodFromStdlib = new HashSet<Type>
#endif
{
typeof(bool),
typeof(DateTime),