Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Diagnostics/Get-WinEvent.Tests.ps1
T

7 lines
206 B
PowerShell
Raw Normal View History

Describe 'Get-WinEvent' {
# Get-WinEvent works only on windows
It 'can query a System log' -Skip:(-not $IsWindows) {
Get-WinEvent -LogName System -MaxEvents 1 | Should Not Be $null
}
}