Tests/Set-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 "Set-IniContent" {

    # assert
    Context "Alias" {
        It "Set-IniContent alias should exist" {
            Get-Alias -Definition Set-IniContent | Where-Object {$_.name -eq "sic"} | Measure-Object | Select-Object -ExpandProperty Count | Should Be 1
        }
    }
}