Skip to content

Conversation

@nmummau
Copy link
Contributor

@nmummau nmummau commented Oct 18, 2025

enable nullable refs and bump LangVersion to C# 12 in test project

  • Set to 12 (was 9.0)
  • Enable nullable reference types: enable
  • No changes to target frameworks, packages, or test settings

Aims to modernize the test project to current C# features and improve null-safety.

@ErikEJ
Copy link
Collaborator

ErikEJ commented Oct 18, 2025

Why is the difference so huge?

@ErikEJ ErikEJ requested a review from Copilot October 18, 2025 15:29
Copy link

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

Modernizes the test project by enabling nullable reference types and updating the C# language version, alongside refactoring namespaces to file-scoped form.

  • Set LangVersion to 12 and enabled nullable reference types.
  • Converted all namespace declarations to file-scoped.
  • Adjusted a helper method parameter to be explicitly nullable and changed certain assertion APIs (introducing a potential issue).

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
VersionCheckerTests.cs Converted to file-scoped namespace.
TestVersionProvider.cs Converted to file-scoped namespace.
TestModelBuilder.cs File-scoped namespace; made fileName parameter nullable.
TestConsole.cs File-scoped namespace refactor.
ScriptParserTests.cs File-scoped namespace; changed assertion API (potential misuse).
ScriptInspectorTests.cs File-scoped namespace.
PropertyParserTest.cs File-scoped namespace.
PackageDeployerTests.cs File-scoped namespace.
PackageBuilderTests.cs File-scoped namespace; changed assertion API (potential misuse).
PackageAnalyzerTests.cs File-scoped namespace.
ExtensionsTest.cs File-scoped namespace.
DacpacTool.Tests.csproj Enabled nullable references and bumped LangVersion to 12.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@ErikEJ ErikEJ left a comment

Choose a reason for hiding this comment

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

Please change to file scoped namespaces in a seperate PR (or revert)

…est project

- Set <LangVersion> to 12 (was 9.0)
- Enable nullable reference types: <Nullable>enable</Nullable>
@nmummau
Copy link
Contributor Author

nmummau commented Oct 19, 2025

Please change to file scoped namespaces in a seperate PR (or revert)

I've removed the file scoped namespace changes from this PR

@ErikEJ
Copy link
Collaborator

ErikEJ commented Oct 19, 2025

@nmummau Now that this is done, you should address the 300 build warnings 😄

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