mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add a V2 DRT for Get-Alias
This commit is contained in:
1 parent
2f60586602
commit
350a630d8f
1 file changed
+10
@@ -161,6 +161,16 @@ Describe "Get-Alias DRT Unit Tests" -Tags DRT{
|
|||||||
$result.Description| Should Be ""
|
$result.Description| Should Be ""
|
||||||
$result.Options| Should Be "None"
|
$result.Options| Should Be "None"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "Test get-alias with Definition parameter" {
|
||||||
|
$returnObject = Get-Alias -Definition Get-Process
|
||||||
|
For($i = 0; $i -lt $returnObject.Length;$i++)
|
||||||
|
{
|
||||||
|
$returnObject[$i] | Should Not BeNullOrEmpty
|
||||||
|
$returnObject[$i].CommandType | Should Be 'Alias'
|
||||||
|
$returnObject[$i].Definition | Should Be 'Get-Process'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Get-Alias" {
|
Describe "Get-Alias" {
|
||||||
|
|||||||
Reference in new issue
Block a user