Skip to content

Commit

Permalink
Support Windows 11 23H2 (10.0.22631) in OsBrandStringHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Oct 12, 2023
1 parent 2e96d29 commit d17c6ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public string ToPrettifiedString(int? ubr)
// Windows 11
new Windows1XVersion("21H2", "Sun Valley", null, 22000),
new Windows1XVersion("22H2", "Sun Valley 2", "2022 Update", 22621),
new Windows1XVersion("23H2", "Sun Valley 3", "2023 Update", 22631),
};

public static Windows1XVersion? Resolve(string osVersionString)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void WindowsIsPrettified(string originalVersion, string prettifiedName)
[InlineData("10.0.22000", 348, "Windows 11 (10.0.22000.348/21H2/SunValley)")]
[InlineData("10.0.22518", 1012, "Windows 11 (10.0.22518.1012)")]
[InlineData("10.0.22621", 0, "Windows 11 (10.0.22621.0/22H2/2022Update/SunValley2)")]
[InlineData("10.0.22631", 2428, "Windows 11 (10.0.22631.2428/23H2/2023Update/SunValley3)")]
public void WindowsWithUbrIsPrettified(string originalVersion, int ubr, string prettifiedName)
=> Check(OsBrandStringHelper.Prettify("Windows", originalVersion, ubr), prettifiedName);

Expand Down

0 comments on commit d17c6ad

Please sign in to comment.