Fix C# tests for ValidateSetValuesGenerator (#4253)
This commit is contained in:
parent
7fa0dd0549
commit
23c9b934ef
1 changed files with 7 additions and 4 deletions
|
@ -290,9 +290,12 @@ Describe 'ValidateSet support a dynamically generated set' -Tag "CI" {
|
||||||
}
|
}
|
||||||
'@
|
'@
|
||||||
|
|
||||||
$testAssemply = "$TestDrive\tst-$(New-Guid).dll"
|
$cls = Add-Type -TypeDefinition $a -PassThru | select -First 1
|
||||||
Add-Type -TypeDefinition $a -OutputAssembly $testAssemply
|
$testModule = Import-Module $cls.Assembly -PassThru
|
||||||
Import-Module $testAssemply
|
}
|
||||||
|
|
||||||
|
AfterAll {
|
||||||
|
Remove-Module -ModuleInfo $testModule
|
||||||
}
|
}
|
||||||
|
|
||||||
It 'Throw if IValidateSetValuesGenerator is not implemented' {
|
It 'Throw if IValidateSetValuesGenerator is not implemented' {
|
||||||
|
|
Loading…
Reference in a new issue