Files
ZertoApiWrapper/Tests/Public/Get-ZertoDatastore.Tests.ps1
T
2019-07-26 08:35:55 -04:00

22 lines
731 B
PowerShell

#Requires -Modules Pester
$global:here = (Split-Path -Parent $MyInvocation.MyCommand.Path)
$global:function = ((Split-Path -leaf $MyInvocation.MyCommand.Path).Split('.'))[0]
Describe $global:function -Tag 'Unit', 'Source', 'Built' {
Context "$global:function::Parameter Unit Tests" {
It "has a non-mandatory string parameter for the datacenterIdentifier" {
Get-Command $global:function | Should -HaveParameter datastoreIdentifier
Get-Command $global:function | Should -HaveParameter datastoreIdentifier -Type String[]
}
}
Context "$global:function::Parameter Functional Tests" {
}
}
Remove-Variable -Name here -Scope Global
Remove-Variable -Name function -Scope Global