Description
The unit test file tests/Unit/DSC_SChannelSettings.Tests.ps1 contains multiple commented-out assertions for WinHttpDefaultSecureProtocols validation at lines 207-210, 368-371, and 529-532. These assertions are commented out due to 32-bit/64-bit system mismatches that cause test failures.
Current State
Commented-out assertions violate the coding guideline: "No commented-out code". The assertions are currently hidden and not tracked by test tooling.
Expected Outcome
Convert the commented-out assertions into properly skipped tests using Pester's -Skip parameter or Set-ItResult -Skipped, with clear skip reasons referencing the 32-bit/64-bit compatibility issue.
Context
Affected Locations
tests/Unit/DSC_SChannelSettings.Tests.ps1 lines 207-210
tests/Unit/DSC_SChannelSettings.Tests.ps1 lines 368-371
tests/Unit/DSC_SChannelSettings.Tests.ps1 lines 529-532
Description
The unit test file
tests/Unit/DSC_SChannelSettings.Tests.ps1contains multiple commented-out assertions for WinHttpDefaultSecureProtocols validation at lines 207-210, 368-371, and 529-532. These assertions are commented out due to 32-bit/64-bit system mismatches that cause test failures.Current State
Commented-out assertions violate the coding guideline: "No commented-out code". The assertions are currently hidden and not tracked by test tooling.
Expected Outcome
Convert the commented-out assertions into properly skipped tests using Pester's
-Skipparameter orSet-ItResult -Skipped, with clear skip reasons referencing the 32-bit/64-bit compatibility issue.Context
Affected Locations
tests/Unit/DSC_SChannelSettings.Tests.ps1lines 207-210tests/Unit/DSC_SChannelSettings.Tests.ps1lines 368-371tests/Unit/DSC_SChannelSettings.Tests.ps1lines 529-532