Test-Module.ps1

<#
    .NOTES
    ===========================================================================
     Created with: SAPIEN Technologies, Inc., PowerShell Studio 2023 v5.8.219
     Created on: 26.3.2023. 00:58
     Created by: chxus
     Organization: CHXOFT
     Filename: Test-Module.ps1
    ===========================================================================
    .DESCRIPTION
    The Test-Module.ps1 script lets you test the functions and other features of
    your module in your PowerShell Studio module project. It's part of your project,
    but it is not included in your module.
 
    In this test script, import the module (be careful to import the correct version)
    and write commands that test the module features. You can include Pester
    tests, too.
 
    To run the script, click Run or Run in Console. Or, when working on any file
    in the project, click Home\Run or Home\Run in Console, or in the Project pane,
    right-click the project name, and then click Run Project.
#>



#Explicitly import the module for testing
Import-Module '7-ZipSetupManager'

#Run each module function
Get-7ZipDownloadLink
Get-7ZipInstallationPath
Get-7ZipSetup -Path C:\Temp\
Get-7ZipInstallationPath -GetVersionOnly
Get-7ZipInstallationPath -Property

#Sample Pester Test
#Describe "Test 7-ZipSetupManager" {
# It "tests Write-HellowWorld" {
# Write-HelloWorld | Should BeExactly "Hello World"
# }
#}