Skip to content

Commit 405bc53

Browse files
authored
simplify the globaljson test logic
1 parent 03720f7 commit 405bc53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildWithGlobalJson.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ public void It_fails_build_on_failed_sdk_resolution(bool runningInVS)
4545
var result = buildCommand.Execute($"/p:BuildingInsideVisualStudio={runningInVS}", $"/bl:binlog{runningInVS}.binlog")
4646
.Should()
4747
.Fail();
48-
var warningString = "warning : Unable to locate the .NET SDK version";
49-
var errorString = "Unable to locate the .NET SDK. Check that it is installed, your PATH is configured for the correct architecture, and that the version specified in global.json (if any) matches the installed version."; if (runningInVS)
48+
var warningString = "warning : Unable to locate the .NET SDK";
49+
var errorString = "Unable to locate the .NET SDK. Check that it is installed";
50+
if (runningInVS)
5051
{
5152
result.And
5253
.HaveStdOutContaining(warningString)

0 commit comments

Comments
 (0)