mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
test suite was not recognizing test file
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$sut = "test-" + (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
|
||||
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
|
||||
. "$here\$sut"
|
||||
|
||||
Describe "Get-Alias" {
|
||||
It "should return 3 objects" {
|
||||
It "should return an array of 3 objects" {
|
||||
$val = Microsoft.PowerShell.Utility\Get-Alias a*
|
||||
$val.CommandType | Should Not BeNullOrEmpty
|
||||
$val.Name | Should Not BeNullOrEmpty
|
||||
$val.ModuleName | Should BeNullOrEmpty
|
||||
$val.Name | Should Not BeNullOrEmpty
|
||||
$val.ModuleName | Should BeNullOrEmpty
|
||||
|
||||
$val.Name[0] | Should Be "ac"
|
||||
$val.Name[1] | Should Be "asnp"
|
||||
$val.GetType().BaseType.Name | Should Be "Array"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
function test-Get-Alias{
|
||||
return Get-Alias a*
|
||||
}
|
||||
Reference in New Issue
Block a user