We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d58279 commit 5c62f95Copy full SHA for 5c62f95
test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs
@@ -394,11 +394,7 @@ public void It_implicitly_defines_compilation_constants_for_the_target_framework
394
.Pass();
395
396
var definedConstants = getValuesCommand.GetValues();
397
- var expectedConstants = expectedDefines.Concat(["DEBUG", "TRACE"]);
398
- if (addDefineFromCli)
399
- {
400
- expectedConstants = expectedConstants.Concat(["HELLOWORLD"]);
401
- }
+ var expectedConstants = expectedDefines.Concat(addDefineFromCli ? ["HELLOWORLD"] : ["DEBUG", "TRACE"]);
402
403
definedConstants.Should().BeEquivalentTo(expectedConstants.ToArray());
404
}
0 commit comments