bbebf2f76a
- Pester source code moved to `test/Pester`, deleted `ext-src`. - Pester tests (.ps1 files) moved to `test/powershell` - xUnit tests (.cs files) moved to `test/csharp` - Third-party script test moved to `test/shebang`
9 lines
441 B
PowerShell
9 lines
441 B
PowerShell
Describe "Register-EngineEvent" {
|
|
|
|
Context "Check return type of Register-ObjectEvent" {
|
|
It "Should return System.Management.Automation.PSEventJob as return type of Register-EngineEvent" {
|
|
( Register-EngineEvent -SourceIdentifier PesterTestRegister -Action {echo registerengineevent} ).GetType() | Should Be System.Management.Automation.PSEventJob
|
|
Unregister-Event -sourceidentifier PesterTestRegister
|
|
}
|
|
}
|
|
}
|