Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jan 18, 2025
1 parent 5d49f5e commit 6f2d3d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/GetPSTreeCommand.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ Describe 'Get-PSTree' {
}
}

It '-RecursiveSize and -Include can work together' {
$measure = Get-ChildItem -Recurse -Include *.cs, *.ps1 |
Measure-Object Length -Sum

Get-PSTree -Include *.cs, *.ps1 -RecursiveSize -Depth 0 |
ForEach-Object Length |
Should -BeExactly $measure.Sum
}

It 'Should traverse all tree when -Recurse is used' {
(Get-PSTree $testPath -Recurse | Select-Object -Skip 1 | Measure-Object).Count |
Should -BeExactly (Get-ChildItem $testPath -Recurse | Measure-Object).Count
Expand Down

0 comments on commit 6f2d3d7

Please sign in to comment.