re-pin to pester fixes, added pester hello world test

This commit is contained in:
Peter Honeder
2015-07-10 13:50:30 -07:00
parent c9d0f87ed1
commit 07eaa4648b
3 changed files with 17 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
"starting test script" | out-host
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$here | out-host
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
$sut | out-host
. "$here\$sut"
Describe "Get-HelloWorld" {
It "outputs 'Hello world!'" {
Get-HelloWorld | Should Be 'Hello world!'
}
}
+3
View File
@@ -0,0 +1,3 @@
function Get-HelloWorld {
'Hello world!'
}