diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 89c13ec..5a73165 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -16,6 +16,7 @@ jobs: dotnet-version: | 6 7 + 8 - name: Build, Test and Sonar uses: swisslife-oss/actions/pull-request@main with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f4889e..b45eb56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: dotnet-version: | 6 7 + 8 - name: Restore tools run: dotnet tool restore - name: Build, Test and Sonar diff --git a/benchmark/Snapshooter.Benchmarks/Snapshooter.Benchmarks.csproj b/benchmark/Snapshooter.Benchmarks/Snapshooter.Benchmarks.csproj index 31072cc..d2d5126 100644 --- a/benchmark/Snapshooter.Benchmarks/Snapshooter.Benchmarks.csproj +++ b/benchmark/Snapshooter.Benchmarks/Snapshooter.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable false @@ -10,7 +10,7 @@ - + diff --git a/global.json b/global.json index 1bf76a5..c19a2e0 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.100", + "version": "8.0.100", "rollForward": "latestMinor" } } diff --git a/src/Dependencies.props b/src/Dependencies.props index bcdfbfb..900cefc 100644 --- a/src/Dependencies.props +++ b/src/Dependencies.props @@ -1,5 +1,5 @@ - netstandard2.0;netcoreapp3.1;net6.0;net7.0 + netstandard2.0;net6.0;net7.0;net8.0 diff --git a/src/Package.props b/src/Package.props index 0cef9fc..f3a7197 100644 --- a/src/Package.props +++ b/src/Package.props @@ -26,7 +26,7 @@ - + diff --git a/src/Snapshooter.NUnit/Snapshooter.NUnit.csproj b/src/Snapshooter.NUnit/Snapshooter.NUnit.csproj index 2d6ca11..0eaa945 100644 --- a/src/Snapshooter.NUnit/Snapshooter.NUnit.csproj +++ b/src/Snapshooter.NUnit/Snapshooter.NUnit.csproj @@ -12,9 +12,16 @@ false + + + + + + + + - diff --git a/src/Snapshooter/Snapshooter.csproj b/src/Snapshooter/Snapshooter.csproj index a6b1936..28845fc 100644 --- a/src/Snapshooter/Snapshooter.csproj +++ b/src/Snapshooter/Snapshooter.csproj @@ -14,7 +14,7 @@ - + diff --git a/test/Dependencies.props b/test/Dependencies.props index cf8ac7c..b203785 100644 --- a/test/Dependencies.props +++ b/test/Dependencies.props @@ -1,5 +1,5 @@ - netcoreapp3.1;net6.0;net7.0 + net6.0;net7.0;net8.0 diff --git a/test/Snapshooter.MSTest.Tests/Snapshooter.MSTest.Tests.csproj b/test/Snapshooter.MSTest.Tests/Snapshooter.MSTest.Tests.csproj index c2f8dd5..8f413d2 100644 --- a/test/Snapshooter.MSTest.Tests/Snapshooter.MSTest.Tests.csproj +++ b/test/Snapshooter.MSTest.Tests/Snapshooter.MSTest.Tests.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/test/Snapshooter.NUnit.Tests/NUnitAssertTests.cs b/test/Snapshooter.NUnit.Tests/NUnitAssertTests.cs index 8d01732..15a6b24 100644 --- a/test/Snapshooter.NUnit.Tests/NUnitAssertTests.cs +++ b/test/Snapshooter.NUnit.Tests/NUnitAssertTests.cs @@ -28,4 +28,4 @@ public void Assert_AssertUnequalText_ThrowsEqualException() Assert.That(action, Throws.TypeOf()); } } -} \ No newline at end of file +} diff --git a/test/Snapshooter.NUnit.Tests/Snapshooter.NUnit.Tests.csproj b/test/Snapshooter.NUnit.Tests/Snapshooter.NUnit.Tests.csproj index 61ebced..5484b7c 100644 --- a/test/Snapshooter.NUnit.Tests/Snapshooter.NUnit.Tests.csproj +++ b/test/Snapshooter.NUnit.Tests/Snapshooter.NUnit.Tests.csproj @@ -7,9 +7,16 @@ true + + + + + + + + - - + diff --git a/test/Snapshooter.NUnit.Tests/SnapshotTests.cs b/test/Snapshooter.NUnit.Tests/SnapshotTests.cs index 5b0feb0..d593bd8 100644 --- a/test/Snapshooter.NUnit.Tests/SnapshotTests.cs +++ b/test/Snapshooter.NUnit.Tests/SnapshotTests.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using NUnit.Framework; using Snapshooter.Tests.Data; @@ -61,7 +61,7 @@ public void Match_TestMatchNewSingleSnapshot_ExpectedSnapshotHasBeenCreated() Snapshot.Match(testPerson); // assert - Assert.True(File.Exists(snapshotFileName)); + Assert.That(File.Exists(snapshotFileName)); } [TestCase(36, 189.45)] @@ -129,7 +129,7 @@ public void Match_TestCaseMatchNewSingleSnapshot_ExpectedSnapshotHasBeenCreated( Snapshot.Match(testPerson); // assert - Assert.True(File.Exists(snapshotFileName)); + Assert.That(File.Exists(snapshotFileName)); } #endregion