Skip to content

Commit f8424de

Browse files
committed
Fiox what copilot couldn';t
1 parent 23f6686 commit f8424de

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

test/NuGet.Core.Tests/NuGet.Common.Test/RuntimeEnvironmentHelperTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using NuGet.Test.Utility;
54
using Xunit;
65

76
namespace NuGet.Common.Test
@@ -51,11 +50,11 @@ public void PlatformDetection_ShouldBeExclusive()
5150

5251
// Assert - Only one platform should be true
5352
var trueCount = (isWindows ? 1 : 0) + (isMacOS ? 1 : 0) + (isLinux ? 1 : 0);
54-
Assert.True(trueCount <= 1,
53+
Assert.True(trueCount <= 1,
5554
$"Multiple platforms detected as true: Windows={isWindows}, macOS={isMacOS}, Linux={isLinux}");
5655

5756
// At least one should be detected (we're running on some platform)
58-
Assert.True(trueCount >= 1,
57+
Assert.True(trueCount >= 1,
5958
$"No platform detected as true: Windows={isWindows}, macOS={isMacOS}, Linux={isLinux}");
6059
}
6160

@@ -76,4 +75,4 @@ public void IsMacOSX_ShouldNotThrowException()
7675
Assert.Null(exception);
7776
}
7877
}
79-
}
78+
}

0 commit comments

Comments
 (0)