test suite was not recognizing test file

This commit is contained in:
Zachary Folwick
2015-07-15 11:33:30 -07:00
parent c9e5651dc8
commit 028021ef44
2 changed files with 8 additions and 6 deletions
+5 -6
View File
@@ -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"
}
}
+3
View File
@@ -0,0 +1,3 @@
function test-Get-Alias{
return Get-Alias a*
}