Skip to content

Conversation

@vcsjones
Copy link
Member

@vcsjones vcsjones commented Jan 5, 2026

Some tests were conditioned to only run on Windows 7. Those tests were removed.

Other tests were conditioned to run on things other that Windows 7. These conditions were removed.

Best reviewed ignoring whitespace changes.

Some tests were conditioned to only run on Windows 7. Those tests were removed.

Other tests were conditioned to run on things other that Windows 7. These conditions were removed.
Copy link
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 pull request removes Windows 7-specific test conditions from cryptography tests following the removal of Windows 7 support. The changes eliminate conditional test execution based on Windows 7 platform detection, allowing previously conditional tests to run unconditionally on all supported platforms.

Key Changes

  • Removed entire test methods that were Windows 7-specific (tests that verified Windows 7 limitations)
  • Converted conditional test attributes (ConditionalFact/ConditionalTheory) to standard attributes (Fact/Theory)
  • Unwrapped test case data that was conditionally generated based on Windows 7 platform detection

Reviewed changes

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

Show a summary per file
File Description
X500DistinguishedNameTests.cs Removed Windows 7 skip condition for TPM identifier test
RijndaelTests.cs Removed Windows 7 CFB feedback size restriction check
DefaultDSAProvider.cs Simplified FIPS 186-3 support check by removing Windows 7 condition
TripleDESContractTests.cs Removed Windows 7-specific CFB64 unsupported test and converted conditional tests to unconditional
TripleDESCipherTests.cs Converted 12 conditional CFB64 tests to unconditional facts/theories
SymmetricOneShotBase.cs Converted 3 conditional CFB-related tests to unconditional
ImportExport.cs Converted ImportZeroModulus test to unconditional theory
DESContractTests.cs Removed Windows 7-specific CFB test and converted remaining CFB tests to unconditional
DESCipherTests.cs Converted 12 conditional CFB8 cipher tests to unconditional theories/facts
DESCipherOneShotTests.cs Unwrapped 10 CFB8 test cases that were conditionally generated for non-Windows 7 platforms
AesModeTests.cs Removed Windows 7-specific CFB128 unsupported test and converted SupportsCFB128 to unconditional
AesContractTests.cs Removed Windows 7 CFB feedback size restriction and fixed trailing whitespace
AesCipherTests.cs Converted 18 conditional CFB128 cipher tests to unconditional and simplified test data generation
AesCipherOneShotTests.cs Unwrapped 13 CFB128 test cases that were conditionally generated for non-Windows 7 platforms

@vcsjones
Copy link
Member Author

vcsjones commented Jan 5, 2026

These are test only changes to System.Security and all failures are known and not in System.Security. Merging.

@vcsjones vcsjones merged commit 103be38 into dotnet:main Jan 5, 2026
81 of 85 checks passed
@vcsjones vcsjones deleted the win7-test-cleanup branch January 5, 2026 19:55
@vcsjones vcsjones restored the win7-test-cleanup branch January 6, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants