Files
PowerShell/src/pester-tests/Test-Get-Alias.Tests.ps1
T

14 lines
459 B
PowerShell
Raw Normal View History

2015-07-15 10:15:39 -07:00
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
2015-07-15 11:33:30 -07:00
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
2015-07-15 10:15:39 -07:00
. "$here\$sut"
Describe "Get-Alias" {
2015-07-15 11:33:30 -07:00
It "should return an array of 3 objects" {
$val = Get-Alias a*
2015-07-15 10:15:39 -07:00
$val.CommandType | Should Not BeNullOrEmpty
2015-07-15 11:33:30 -07:00
$val.Name | Should Not BeNullOrEmpty
$val.ModuleName | Should BeNullOrEmpty
2015-07-15 10:15:39 -07:00
2015-07-15 11:33:30 -07:00
$val.GetType().BaseType.Name | Should Be "Array"
2015-07-15 10:15:39 -07:00
}
}