tests/TMD.Certificates.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
BeforeAll {
    # Import the module file
    if (Get-Module 'TMD.Common') {
        Remove-Module 'TMD.Common' -Force
    }
    Import-Module "TMD.Common" -Force
}

Describe 'Get-RemoteSSLCertificate' {
    It 'Outputs the correct type' {
        # $Cert = Get-RemoteSSLCertificate -ComputerName $env:COMPUTERNAME
        # $Cert | Should -BeOfType 'System.Security.Cryptography.X509Certificates.X509Certificate2'
    }
}