Tests/Remove-IniComment.Tests.ps1
# Enforce WorkingDir #-------------------------------------------------- $Script:ScriptDir = Split-Path -Path $MyInvocation.MyCommand.Path -parent Set-Location $ScriptDir $testFile = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") # functions and tests stored in separate directories; adjusting dot-sourcing . "$($ScriptDir -replace 'Tests', 'Functions')\$testFile" Describe "Remove-IniComment" { # assert Context "Alias" { It "Remove-IniComment alias should exist" { Get-Alias -Definition Remove-IniComment | Where-Object {$_.name -eq "ric"} | Measure-Object | Select-Object -ExpandProperty Count | Should Be 1 } } } |