functions/Testers/Install-Certificate.Tests.ps1
$filename = $($(Split-Path -Leaf MyInvocation.MyCommand.Path).Replace('.Tests.ps1','')) Describe "$filename Unit Tests" -Tags 'Unit' { It "TestMethod" { } } Describe "$filename Integration Tests" -Tags 'Integration' { It "Can install Certificate" { $result = $(Test-DownloadCertificate -CertificateHost "104.42.156.207") $result | Should Not BeNullOrEmpty $result.CertData | Should Not BeNullOrEmpty # Start-Process -Verb runas -FilePath powershell.exe -ArgumentList Install-Certificate -certdata $($result.CertData) -certpass "mycertpassword" } } |