Add autoload for test modules (#3342)

Related #3238

1. Add autoload for test modules
2. Move TestHostCS.psm1 to 'test\tools\Modules\' folder
3. Remove explicit load TestHostCS.psm1 from test files
This commit is contained in:
Ilya
2017-03-26 21:46:39 -07:00
committed by Travis Plunk
parent 8598a51823
commit a99fb531e6
8 changed files with 129 additions and 16 deletions
@@ -1,7 +1,4 @@
Import-Module $PSScriptRoot\..\..\Common\Test.Helpers.psm1 -ErrorAction SilentlyContinue
Import-Module $PSScriptRoot\..\..\Common\TestHostCS.psm1 -ErrorAction SilentlyContinue
Describe "Tests for parameter binding" -Tags "CI" {
Describe "Tests for parameter binding" -Tags "CI" {
Context 'Test of Mandatory parameters' {
BeforeAll {
$f = "function get-foo { param([Parameter(mandatory=`$true)] `$a) `$a };"