test/utility/Disable-X509FormatDataView.Tests.ps1
Describe 'Test Disable-X509FormatDataView' { BeforeAll { $ModuleHome = $script:PSCommandPath | Split-Path -Parent | Split-Path -Parent | Split-Path -Parent # Reimports 'XAz'. If its not currently import just silently continue Remove-Module -Name 'XAz' -ErrorAction SilentlyContinue Import-Module $ModuleHome InModuleScope 'XAz' { $script:SUT = $true } } AfterAll { InModuleScope 'XAz' { $script:SUT = $false } } Context 'Post executing New-Script' { It 'Should have command accessible' { $Results = Get-Command Disable-X509FormatDataView | Select-Object -ExpandProperty CommandType $Results | Should -Be 'Function' } } } |