Skip to content

Commit 5c62f95

Browse files
committed
Fix tests.
1 parent 3d58279 commit 5c62f95

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibrary.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,7 @@ public void It_implicitly_defines_compilation_constants_for_the_target_framework
394394
.Pass();
395395

396396
var definedConstants = getValuesCommand.GetValues();
397-
var expectedConstants = expectedDefines.Concat(["DEBUG", "TRACE"]);
398-
if (addDefineFromCli)
399-
{
400-
expectedConstants = expectedConstants.Concat(["HELLOWORLD"]);
401-
}
397+
var expectedConstants = expectedDefines.Concat(addDefineFromCli ? ["HELLOWORLD"] : ["DEBUG", "TRACE"]);
402398

403399
definedConstants.Should().BeEquivalentTo(expectedConstants.ToArray());
404400
}

0 commit comments

Comments
 (0)