IonMod-Test.ps1
# Powershell Module Tests # $PUBLICPREFIX = "dad2e89ca8754409b86a2f205197dbd8" $SECRET = "Wow8bKire-YP5q3O6FyuwLd5Xi1vPWvENgJITcvVOiAKzN11zjWv00WPK0iocLj4Zw_mxXSeWzEIhgIgynUtxQ" # # # function Assert-Assertion { param ( $InnyBoi=$1, $ComparyBoi=$2 ) if ($InnyBoi -eq $ComparyBoi){ return $True } throw 'Assert Failed. $1:' + $InnyBoi + ' is not equal to $2:' + $ComparyBoi + '.' } # Set-Alias -Name "Assert" -Value Assert-Assertion # # Import-Module "$PSScriptRoot/IonMod.psm1" # # $Token = New-IonToken -PublicPrefix $PUBLICPREFIX -Secret $SECRET # # $Zones=($Token | Get-IonZone) |