Skip to content

Instantly share code, notes, and snippets.

@mattmcnabb
mattmcnabb / Test-EventLogExists.Tests.ps1
Last active April 7, 2016 18:00 — forked from gerane/Test-EventLogExists.Tests.ps1
Learning Pester and better comment based Help. Please leave feedback if you have any suggestions!
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace('.Tests.', '.')
. "$here\$sut"
Remove-EventLog -LogName Pester -ErrorAction SilentlyContinue
Describe 'Test-EventLogExists' {
Set-StrictMode -Version latest