diff --git a/src/Certificate/New-CSCertificate.Tests.ps1 b/src/Certificate/New-CSCertificate.Tests.ps1 index c02d0c9..d42d514 100644 --- a/src/Certificate/New-CSCertificate.Tests.ps1 +++ b/src/Certificate/New-CSCertificate.Tests.ps1 @@ -1,6 +1,14 @@ BeforeAll { $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName Import-Module $ManifestFile -Force + + $PrivateFunctions = (Get-ChildItem -Path "./src/Private/*.ps1" | Where-Object { + $_.BaseName -notmatch '.Tests' + } + ).FullName + foreach ( $func in $PrivateFunctions) { + . $func + } } Describe "New-CSCertificate" {