From a3d6d016039fde85c4417d29be6ca2fc2125f3cf Mon Sep 17 00:00:00 2001 From: nth-commit Date: Sun, 17 Jul 2022 10:33:29 +1200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8D=20Downgrade=20analyzers=20to=20net?= =?UTF-8?q?standard2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AFAICT, there's not much guidance on how to author analyzers in net6.0 yet. Popular analyzer packages are still targeting netstandard. --- .../RunnerTests/AssertTests/AboutExhaustion.cs | 4 ++-- .../RunnerTests/CheckTests/AboutExhaustion.cs | 8 ++++---- .../RunnerTests/PrintTests/AboutExhaustion.cs | 4 ++-- .../GalaxyCheck.Xunit.CodeAnalysis.csproj | 2 +- .../GalaxyCheck.Xunit.CodeAnalysis.nuspec | 4 ++-- src/GalaxyCheck.Xunit/GalaxyCheck.Xunit.nuspec | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/GalaxyCheck.Tests/RunnerTests/AssertTests/AboutExhaustion.cs b/src/GalaxyCheck.Tests/RunnerTests/AssertTests/AboutExhaustion.cs index 7302a865..3dfd35e1 100644 --- a/src/GalaxyCheck.Tests/RunnerTests/AssertTests/AboutExhaustion.cs +++ b/src/GalaxyCheck.Tests/RunnerTests/AssertTests/AboutExhaustion.cs @@ -25,7 +25,7 @@ public void ItCanExhaust([Seed] int seed, [Size] int size) test.Should().Throw(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } @@ -43,7 +43,7 @@ public void ItCanExhaustAsync([Seed] int seed, [Size] int size) await test.Should().ThrowAsync(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } } diff --git a/src/GalaxyCheck.Tests/RunnerTests/CheckTests/AboutExhaustion.cs b/src/GalaxyCheck.Tests/RunnerTests/CheckTests/AboutExhaustion.cs index 2cd308a9..6d66160e 100644 --- a/src/GalaxyCheck.Tests/RunnerTests/CheckTests/AboutExhaustion.cs +++ b/src/GalaxyCheck.Tests/RunnerTests/CheckTests/AboutExhaustion.cs @@ -26,7 +26,7 @@ public void ItExhaustsWhenGenerationIsImpossible([Seed] int seed, [Size] int siz test.Should().Throw(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } [Property(Iterations = 1)] @@ -41,7 +41,7 @@ public void ItExhaustsWhenPreconditionIsImpossible([Seed] int seed, [Size] int s test.Should().Throw(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } @@ -60,7 +60,7 @@ public void ItExhaustsWhenGenerationIsImpossible([Seed] int seed, [Size] int siz await test.Should().ThrowAsync(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } [Property(Iterations = 1)] @@ -79,7 +79,7 @@ public void ItExhaustsWhenPreconditionIsImpossible([Seed] int seed, [Size] int s await test.Should().ThrowAsync(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } diff --git a/src/GalaxyCheck.Tests/RunnerTests/PrintTests/AboutExhaustion.cs b/src/GalaxyCheck.Tests/RunnerTests/PrintTests/AboutExhaustion.cs index 1978af46..e80d7ac8 100644 --- a/src/GalaxyCheck.Tests/RunnerTests/PrintTests/AboutExhaustion.cs +++ b/src/GalaxyCheck.Tests/RunnerTests/PrintTests/AboutExhaustion.cs @@ -25,7 +25,7 @@ public void ItCanExhaust([Seed] int seed, [Size] int size) test.Should().Throw(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } @@ -43,7 +43,7 @@ public void ItCanExhaustAsync([Seed] int seed, [Size] int size) await test.Should().ThrowAsync(); }, - TimeSpan.FromSeconds(20)); + TimeSpan.FromSeconds(60)); } } } diff --git a/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.csproj b/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.csproj index b055eb3a..7b53ea23 100644 --- a/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.csproj +++ b/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.csproj @@ -3,7 +3,7 @@ 9.0 enable - net6.0 + netstandard2.0 GalaxyCheck.Xunit.CodeAnalysis.nuspec PackageVersion=$(PackageVersion) diff --git a/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.nuspec b/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.nuspec index fd35c189..cea6bbec 100644 --- a/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.nuspec +++ b/src/GalaxyCheck.Xunit.CodeAnalysis/GalaxyCheck.Xunit.CodeAnalysis.nuspec @@ -11,8 +11,8 @@ true - - + + \ No newline at end of file diff --git a/src/GalaxyCheck.Xunit/GalaxyCheck.Xunit.nuspec b/src/GalaxyCheck.Xunit/GalaxyCheck.Xunit.nuspec index d0f97870..bf058471 100644 --- a/src/GalaxyCheck.Xunit/GalaxyCheck.Xunit.nuspec +++ b/src/GalaxyCheck.Xunit/GalaxyCheck.Xunit.nuspec @@ -9,7 +9,7 @@ MIT GalaxyCheck;Property-Based Testing;Test Framework;Xunit - +