Add comprehensive scalar type tests for ConvertTo-Json by yotsuda · Pull Request #26736 · PowerShell/PowerShell
Address review feedback by replacing all -Match assertions with -BeExactly for more precise test validation. Also add missing $null test case to Primitive scalar types. Changes: - Add $null test case to Primitive scalar types TestCases - Replace -Match with -BeExactly in ETS properties tests (9 instances) - Remove redundant -Not -Match assertion in String ETS test - Calculate timezone offset dynamically for DateTime Local kind test - Use full JSON string comparison for Guid array, Array ETS, and Hashtable ETS tests All tests pass successfully (114 tests). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
iSazonov
added
the
Approved-LowRisk
label
yotsuda
deleted the
add-convertto-json-scalar-tests-v2
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters