Skip to content

Commit d17c6ad

Browse files
committedOct 12, 2023
Support Windows 11 23H2 (10.0.22631) in OsBrandStringHelper
1 parent 2e96d29 commit d17c6ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public string ToPrettifiedString(int? ubr)
160160
// Windows 11
161161
new Windows1XVersion("21H2", "Sun Valley", null, 22000),
162162
new Windows1XVersion("22H2", "Sun Valley 2", "2022 Update", 22621),
163+
new Windows1XVersion("23H2", "Sun Valley 3", "2023 Update", 22631),
163164
};
164165

165166
public static Windows1XVersion? Resolve(string osVersionString)

‎tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public void WindowsIsPrettified(string originalVersion, string prettifiedName)
5151
[InlineData("10.0.22000", 348, "Windows 11 (10.0.22000.348/21H2/SunValley)")]
5252
[InlineData("10.0.22518", 1012, "Windows 11 (10.0.22518.1012)")]
5353
[InlineData("10.0.22621", 0, "Windows 11 (10.0.22621.0/22H2/2022Update/SunValley2)")]
54+
[InlineData("10.0.22631", 2428, "Windows 11 (10.0.22631.2428/23H2/2023Update/SunValley3)")]
5455
public void WindowsWithUbrIsPrettified(string originalVersion, int ubr, string prettifiedName)
5556
=> Check(OsBrandStringHelper.Prettify("Windows", originalVersion, ubr), prettifiedName);
5657

0 commit comments

Comments
 (0)
Please sign in to comment.