From e9529bd281e1253971fe6fe7914d5833c452ec05 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 28 Jun 2022 11:05:19 +0200 Subject: [PATCH] wip --- src/Certificate/New-CSCertificate.Tests.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) 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" {