Tests/Get-IniContent.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 "Get-IniContent" { # assert Context "Alias" { It "Get-IniContent alias should exist" { Get-Alias -Definition Get-IniContent | Where-Object {$_.name -eq "gic"} | Measure-Object | Select-Object -ExpandProperty Count | Should Be 1 } } } |