Fix #2555 and #2561: Should-BeNull pipeline and escape chars in error messages #2685
Build #20260403.1 had test failures
Details
- Failed: 18 (0.10%)
- Passed: 17,166 (98.11%)
- Other: 312 (1.78%)
- Total: 17,496
- 6349 of 7261 line covered (87.44%)
Annotations
Check failure on line 3211 in Build log
azure-pipelines / Pester PR
Build log #L3211
[-] <ScriptBlock> failed with:
Check failure on line 3211 in Build log
azure-pipelines / Pester PR
Build log #L3211
[-] <ScriptBlock> failed with:
Check failure on line 3211 in Build log
azure-pipelines / Pester PR
Build log #L3211
[-] <ScriptBlock> failed with:
Check failure on line 3252 in Build log
azure-pipelines / Pester PR
Build log #L3252
[-] <ScriptBlock> failed with:
azure-pipelines / Pester PR
Format-Object2.Formats current process with selected properties Name and Id correctly
Exception: Expected and actual values differ!
Expected: 'Diagnostics.Process{Id=4144; Name='powershell'}'
Actual : 'Diagnostics.Process{Id=4144; Name='pow␛rsh␛ll'}'
Expected length: 47
Actual length: 47
At D:\a\1\s\tst\Format2.Tests.ps1:95 char:76
+ ... Value $process -Property $selectedProperties | Verify-Equal $Expected
+ ~~~~~~~~~~~~~~~~~~~~~~
Raw output
at Verify-Equal, D:\a\1\s\tst\axiom\Verify-Equal.ps1:18
at <ScriptBlock>, D:\a\1\s\tst\Format2.Tests.ps1:95
Check failure on line 1 in Format-Hashtable2.Formats hashtable as '@{Hash=@{Hash='Value'}}'
azure-pipelines / Pester PR
Format-Hashtable2.Formats hashtable as '@{Hash=@{Hash='Value'}}'
Exception: Expected and actual values differ!
Expected: '@{Hash=@{Hash='Value'}}'
Actual : '@{Hash=@{Hash='Valu␛'}}'
Expected length: 23
Actual length: 23
At D:\a\1\s\tst\Format2.Tests.ps1:132 char:40
+ Format-Hashtable2 $Value | Verify-Equal $Expected
+ ~~~~~~~~~~~~~~~~~~~~~~
Raw output
at Verify-Equal, D:\a\1\s\tst\axiom\Verify-Equal.ps1:18
at <ScriptBlock>, D:\a\1\s\tst\Format2.Tests.ps1:132
azure-pipelines / Pester PR
Format-Dictionary2.Formats dictionary as 'Dictionary{Dict=Dictionary{Dict='Value'}}'
Exception: Expected and actual values differ!
Expected: 'Dictionary{Dict=Dictionary{Dict='Value'}}'
Actual : 'Dictionary{Dict=Dictionary{Dict='Valu␛'}}'
Expected length: 41
Actual length: 41
At D:\a\1\s\tst\Format2.Tests.ps1:147 char:41
+ Format-Dictionary2 $Value | Verify-Equal $Expected
+ ~~~~~~~~~~~~~~~~~~~~~~
Raw output
at Verify-Equal, D:\a\1\s\tst\axiom\Verify-Equal.ps1:18
at <ScriptBlock>, D:\a\1\s\tst\Format2.Tests.ps1:147
azure-pipelines / Pester PR
Should-BeCollection.Fails when collections don't have the same items(1 2 3 4 5,5 6 7 8 9)
Exception: Expected and actual values differ!
Expected: 'Expected [Object[]] @(5, 6, 7, 8, 9) to be present in [Object[]] @(1, 2, 3, 4, 5) in any order, but some values were not.
Missing in actual: '6 (index 1), 7 (index 2), 8 (index 3), 9 (index 4)'
Extra in actual: '1 (index 0), 2 (index 1), 3 (index 2), 4 (index 3)''
Actual : 'Expected [Object[]] @(5, 6, 7, 8, 9) to be present in [Object[]] @(1, 2, 3, 4, 5) in any order, but some values were not.
Missing in actual: '6 (ind␛x 1), 7 (ind␛x 2), 8 (ind␛x 3), 9 (ind␛x 4)'
Extra in actual: '1 (ind␛x 0), 2 (ind␛x 1), 3 (ind␛x 2), 4 (ind␛x 3)''
Expected length: 263
Actual length: 263
At D:\a\1\s\tst\functions\assert\Collection\Should-BeCollection.Tests.ps1:25 char:34
+ ... n.Message | Verify-Equal "Expected [Object[]] @(5, 6, 7, 8, 9) to be ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raw output
at Verify-Equal, D:\a\1\s\tst\axiom\Verify-Equal.ps1:18
at <ScriptBlock>, D:\a\1\s\tst\functions\assert\Collection\Should-BeCollection.Tests.ps1:25