Skip to content

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Jan 30, 2026

This PR modernizes field declarations using C# auto-property field features and improves code formatting. The changes reduce boilerplate code while maintaining identical functionality.

Key Changes:

  • Replaced private backing fields with auto-property field syntax (field keyword)
  • Added property initializers for default values
  • Updated code formatting configuration to use Tab indentation
  • Improved line formatting for better readability in FileSystemWatcherMock

@vbreuss vbreuss self-assigned this Jan 30, 2026
Copilot AI review requested due to automatic review settings January 30, 2026 13:27
@vbreuss vbreuss added the refactor A change or improvement without functional impact label Jan 30, 2026
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

This PR refactors the FileSystemWatcherMock class by modernizing field declarations using C# auto-property field features and improves code formatting. The changes reduce boilerplate code while maintaining identical functionality.

Changes:

  • Replaced private backing fields with auto-property field syntax (field keyword)
  • Added property initializers for default values
  • Updated code formatting configuration to use Tab indentation
  • Improved line formatting for better readability

Reviewed changes

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

File Description
Testably.Abstractions.sln.DotSettings Added Tab indentation style configuration
Source/Testably.Abstractions.Testing/FileSystem/FileSystemWatcherMock.cs Converted private backing fields to auto-property fields with initializers and improved formatting

- Execute code cleanup on FileSystemWatcherMock
@vbreuss vbreuss force-pushed the topic/cleanup-code branch from f7ec22d to 9c35ce7 Compare January 30, 2026 13:37
@vbreuss vbreuss changed the title refactor: cleanup FileSystemWatcherMock refactor: use auto-property field declarations Jan 30, 2026
@vbreuss vbreuss enabled auto-merge (squash) January 30, 2026 13:40
@sonarqubecloud
Copy link

@vbreuss vbreuss merged commit cc8f617 into main Jan 30, 2026
13 checks passed
@vbreuss vbreuss deleted the topic/cleanup-code branch January 30, 2026 14:17
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

This is addressed in release v5.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor A change or improvement without functional impact state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants