Tests/cChocoInstaller_Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
#---------------------------------#
# Pester tests for cChocoInstall #
#---------------------------------#
$ResourceName = ((Split-Path $MyInvocation.MyCommand.Path -Leaf) -split '_')[0]
$ResourceFile = (Get-DscResource -Name $ResourceName).Path

Describe "Testing $ResourceName loaded from $ResourceFile" {
  Context “Testing 'Get-TargetResource'” {
    It 'DummyTest $true should be $true' {
      $true | Should Be $true
    }    
  }
}