From e1e08f4d0595451557ac541980ec2a54d1f1d921 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 26 Mar 2019 15:39:17 -0400 Subject: [PATCH] Create External Help File Test --- Tests/Public/External-Help.Tests.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tests/Public/External-Help.Tests.ps1 diff --git a/Tests/Public/External-Help.Tests.ps1 b/Tests/Public/External-Help.Tests.ps1 new file mode 100644 index 0000000..363c91b --- /dev/null +++ b/Tests/Public/External-Help.Tests.ps1 @@ -0,0 +1,10 @@ +$filePath = (Split-Path -Parent $MyInvocation.MyCommand.Path) -replace 'Tests', 'ZertoApiWrapper' +$publicFiles = Get-ChildItem "$filePath" -File + +describe "External Help Present" { + foreach ($file in $publicFiles) { + it "External Help File Defined" { + Get-Content -Path $file.fullName -First 1 | should be "<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>" + } + } +}