diff --git a/__tests__/clear-installed-dotnet.ps1 b/__tests__/clear-installed-dotnet.ps1 index ba87760..84ad0d8 100644 --- a/__tests__/clear-installed-dotnet.ps1 +++ b/__tests__/clear-installed-dotnet.ps1 @@ -24,4 +24,10 @@ foreach ($path in $pathsToClear) { } } -Get-Command "dotnet --info" \ No newline at end of file +try { + Get-Command "dotnet --info" + Write-Host "dotnet was not removed" + exit 1 +} catch { + Write-Host "dotnet was removed successfully" +} \ No newline at end of file