Skip to content

Apply more SonarQube cleanups.#52

Merged
Malcolmnixon merged 1 commit intomainfrom
more-sonarqube-cleanups
May 3, 2025
Merged

Apply more SonarQube cleanups.#52
Malcolmnixon merged 1 commit intomainfrom
more-sonarqube-cleanups

Conversation

@Malcolmnixon
Copy link
Copy Markdown
Member

This PR implements more SonarQube cleanups introduced with the last package update.

@Malcolmnixon Malcolmnixon requested a review from Copilot May 3, 2025 23:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR applies SonarQube cleanups by updating exception assertion patterns in several unit tests.

  • Updates exception assertions to use Assert.ThrowsExactly for improved precision.
  • Standardizes exception message formats across multiple test cases.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/DemaConsulting.SpdxModel.Tests/SpdxRelationshipTests.cs Replaces ThrowsException with ThrowsExactly in relationship tests.
test/DemaConsulting.SpdxModel.Tests/SpdxFileTests.cs Switches exception assertions to ThrowsExactly for file type tests.
test/DemaConsulting.SpdxModel.Tests/SpdxExternalReferenceTests.cs Updates exception assertions to ThrowsExactly in reference category tests.
test/DemaConsulting.SpdxModel.Tests/SpdxChecksumTests.cs Uses ThrowsExactly for checksum algorithm tests.
test/DemaConsulting.SpdxModel.Tests/SpdxAnnotationTests.cs Applies ThrowsExactly and standardizes exception message formatting in annotation tests.

@Malcolmnixon Malcolmnixon merged commit 1f4c480 into main May 3, 2025
7 checks passed
@Malcolmnixon Malcolmnixon deleted the more-sonarqube-cleanups branch May 3, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants