mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
31 lines
1.1 KiB
PowerShell
31 lines
1.1 KiB
PowerShell
Describe "Visual Studio" {
|
|
Context "Basic" {
|
|
It "Catalog.json" {
|
|
Get-VsCatalogJsonPath | Should -Exist
|
|
}
|
|
|
|
It "Devenv.exe" {
|
|
$vsInstallRoot = (Get-VisualStudioInstance).InstallationPath
|
|
$devenvexePath = "${vsInstallRoot}\Common7\IDE\devenv.exe"
|
|
$devenvexePath | Should -Exist
|
|
}
|
|
}
|
|
|
|
Context "Visual Studio components" {
|
|
$expectedComponents = Get-ToolsetContent | Select-Object -ExpandProperty visualStudio | Select-Object -ExpandProperty workloads
|
|
$testCases = $expectedComponents | ForEach-Object { @{ComponentName = $_} }
|
|
BeforeAll {
|
|
$installedComponents = Get-VisualStudioComponents | Select-Object -ExpandProperty Package
|
|
}
|
|
|
|
It "<ComponentName>" -TestCases $testCases {
|
|
$installedComponents | Should -Contain $ComponentName
|
|
}
|
|
}
|
|
}
|
|
|
|
Describe "Windows 10 SDK" {
|
|
It "Verifies 17763 SDK is installed" -Skip:(Test-IsWin19) {
|
|
"${env:ProgramFiles(x86)}\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.17763.0\UAP.props" | Should -Exist
|
|
}
|
|
} |