SharePoint2016Commands.tests.ps1
<#
This a PESTER Test for the SharePoint2016Commands PowerShellModule #> Import-Module SharePoint2016Commands InModuleScope -ModuleName "SharePoint2016Commands" -ScriptBlock { Describe -Name "Validating SharePoint2016Commands Module" -Fixture { Context -Name "Check module" -Fixture { It "PSSnapin loaded" { Get-PSSnapin -Name Microsoft.SharePoint.PowerShell | Should -Not -BeNullOrEmpty } It "Get-SPFarm command is available" { Get-Command Get-SPFarm | Should -Not -BeNullOrEmpty } } } } |