TestCases/Setup/Installation/InstallationTest.ps1
#Set-StrictMode -Version Latest #class InstallationTest:AzSKTestBase{ #[string]$BaselineOutputPath = [string]::Empty #InstallationTest([TestCase] $testcase, [TestSettings] $testsettings):Base($testcase, $testsettings){ # if(![string]::IsNullOrEmpty($testcase.BaselineOutput)) # { # $this.BaselineOutputPath =[CommonHelper]::GetPath([PathList]::TestData,$testcase)+$testcase.BaselineOutput # } #} #[void] Execute(){ # switch ($this.testcase.TestMethod.Trim()){ # "TestInstallAzSKOSS"{ # $this.TestInstallAzSKOSS() # break # } # } #} #[TestCaseResult] TestInstallAzSKOSS(){ # try{ # Install-Module AzSK -Scope CurrentUser # } # catch{ # } #} #} |