Skip to content

Commit

Permalink
adding few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Jul 28, 2023
1 parent 0fe011e commit 2abf053
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/PathExtensions.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ Import-Module ([System.IO.Path]::Combine($PSScriptRoot, 'shared.psm1'))

Describe 'PathExtensions' {
BeforeAll {
$pathExtensions = (Get-PSTree -Depth 0).GetType().Assembly.GetType('PSTree.PathExtensions')
$normalizePath = $pathExtensions.GetMethod(
'NormalizePath', [System.Reflection.BindingFlags] 'NonPublic, Static',
[type[]] ([string], [bool], [System.Management.Automation.PSCmdlet], [bool], [bool]))
$normalizePath = (Get-PSTree -Depth 0).GetType().
Assembly.
GetType('PSTree.PathExtensions').
GetMethod(
'NormalizePath',
[System.Reflection.BindingFlags] 'NonPublic, Static',
$null,
[type[]] ([string], [bool], [System.Management.Automation.PSCmdlet], [bool], [bool]),
$null)

$normalizePath | Out-Null
}

Expand Down

0 comments on commit 2abf053

Please sign in to comment.