2020-07-22 14:04:40 +03:00
|
|
|
Describe "Visual Studio" {
|
|
|
|
|
Context "Basic" {
|
|
|
|
|
It "Catalog.json" {
|
|
|
|
|
Get-VsCatalogJsonPath | Should -Exist
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Devenv.exe" {
|
2020-09-10 17:04:24 +03:00
|
|
|
$vsInstallRoot = Get-VisualStudioPath
|
2020-07-22 14:04:40 +03:00
|
|
|
$devenvexePath = "${vsInstallRoot}\Common7\IDE\devenv.exe"
|
|
|
|
|
$devenvexePath | Should -Exist
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Context "Visual Studio components" {
|
2020-09-10 17:04:24 +03:00
|
|
|
$expectedComponents = Get-ToolsetContent | Select-Object -ExpandProperty visualStudio | Select-Object -ExpandProperty workloads
|
|
|
|
|
$testCases = $expectedComponents | ForEach-Object { @{ComponentName = $_} }
|
2020-07-22 14:04:40 +03:00
|
|
|
BeforeAll {
|
2020-09-10 17:04:24 +03:00
|
|
|
$installedComponents = Get-VisualStudioComponents | Select-Object -ExpandProperty Package
|
2020-07-22 14:04:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "<ComponentName>" -TestCases $testCases {
|
|
|
|
|
$installedComponents | Should -Contain $ComponentName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|