Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the project to support .NET 8.0 and 9.0, modernizes the test project setup, and improves test assertions for clarity and maintainability. The most important changes include updating package metadata and dependencies, migrating the test project to the new SDK style and frameworks, and switching from the deprecated
Shouldassertion library toShouldlythroughout the test code.Project and package updates:
nuspec/nuget/Cake.CsvHelper.nuspecto add aREADME.mdreference, specify dependency onCsvHelperversion 33.1.0, and include build outputs fornet8.0andnet9.0frameworks. Also added LICENSE and README files to the package.Test project modernization:
src/Cake.CsvHelper.Tests/Cake.CsvHelper.Tests.csprojfrom legacy.csprojformat targeting .NET Framework 4.6.1 to SDK-style format targetingnet8.0andnet9.0. Updated all dependencies to modern NuGet package references.Testing improvements:
Shouldassertion library withShouldlyin all test files, improving assertion clarity and future compatibility (CsvHelperAliasesTests.cs,CsvHelperTests.cs). [1] [2]Shouldlyidioms (e.g.,ShouldBeOfType<T>(),ShouldBe()) for exception and equality checks, replacing olderShouldBeType<T>()andShouldEqual()calls for more consistent and readable tests. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]