Skip to content

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Aug 8, 2025

This PR migrates test projects from FluentAssertions and AutoFixture to aweXpect for assertion testing across multiple example projects. The primary goal is to fix compile errors in Examples.sln by updating testing dependencies and assertion syntax.

Key changes:

  • Replaced FluentAssertions and AutoFixture.Xunit2 with aweXpect assertion library
  • Updated package references in Directory.Build.props to include aweXpect packages
  • Converted synchronous test methods to async Task methods to support aweXpect's async assertions

@vbreuss vbreuss self-assigned this Aug 8, 2025
Copilot AI review requested due to automatic review settings August 8, 2025 17:16
@vbreuss vbreuss added the bug Something isn't working label Aug 8, 2025
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 migrates test projects from FluentAssertions and AutoFixture to aweXpect for assertion testing across multiple example projects. The primary goal is to fix compile errors in Examples.sln by updating testing dependencies and assertion syntax.

Key changes:

  • Replaced FluentAssertions and AutoFixture.Xunit2 with aweXpect assertion library
  • Updated package references in Directory.Build.props to include aweXpect packages
  • Converted synchronous test methods to async Task methods to support aweXpect's async assertions

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Examples/Directory.Build.props Updated package references from AutoFixture.Xunit3 to aweXpect and aweXpect.Testably
Examples/ZipFile/ZipFile.Tests/ZipFileHelperTests.cs Migrated from FluentAssertions to aweXpect assertions, replaced AutoData with InlineData
Examples/ThreadAwareTimeProvider/ThreadAwareTimeProvider.Tests/ThreadAwareTimeProviderTests.cs Converted to async methods with aweXpect assertions and added cancellation token support
Examples/SafeFileHandle/SafeFileHandle.Tests/SafeFileHandleTests.cs Updated assertions and test attributes, replaced Skip.If with Skip.Test
Examples/FileSystemWatcher/FileSystemWatcher.Tests/FileSystemWatcherTests.cs Migrated to async aweXpect assertions with cancellation token usage
Examples/DriveManagement/DriveManagement.Tests/DriveManagementTests.cs Converted assertions and restructured exception testing using aweXpect patterns
Examples/Configuration/FileSystemConfiguration.Tests/NotificationTests.cs Updated to async methods with aweXpect assertions and cancellation tokens
Examples/Configuration/FileSystemConfiguration.Tests/InterceptionTests.cs Migrated assertions and removed AutoFixture dependency
Examples/Configuration/FileSystemConfiguration.Tests/InitializationTests.cs Converted to aweXpect assertions and simplified test data setup
Examples/Configuration/DependencyInjection.Tests/DependencyInjectionTests.cs Updated type assertions using aweXpect syntax
Examples/AccessControlLists/AccessControlLists.Tests/AccessControlListTests.cs Migrated assertions and exception testing to aweXpect patterns
Files not reviewed (2)
  • Examples/.idea/.idea.Examples/.idea/.gitignore: Language not supported
  • Examples/.idea/.idea.Examples/.idea/indexLayout.xml: Language not supported

@vbreuss vbreuss enabled auto-merge (squash) August 8, 2025 17:19
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 8, 2025

@vbreuss vbreuss merged commit 46cad24 into main Aug 8, 2025
14 checks passed
@vbreuss vbreuss deleted the topic/fix-examples branch August 8, 2025 17:41
Copilot AI pushed a commit that referenced this pull request Aug 8, 2025
This PR migrates test projects from FluentAssertions and AutoFixture to aweXpect for assertion testing across multiple example projects. The primary goal is to fix compile errors in Examples.sln by updating testing dependencies and assertion syntax.

### Key changes:
- Replaced FluentAssertions and AutoFixture.Xunit2 with aweXpect assertion library
- Updated package references in Directory.Build.props to include aweXpect packages
- Converted synchronous test methods to async Task methods to support aweXpect's async assertions
@github-actions
Copy link

This is addressed in release v4.3.0.

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

Labels

bug Something isn't working state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants