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" {
|
2015-07-15 10:15:39 -07:00
|
|
|
$val = Microsoft.PowerShell.Utility\Get-Alias a*
|
|
|
|
|
$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
|
|
|
}
|
|
|
|
|
}
|