From d17c6ad0bd8ac15d83ced0a7522de7dd51526ad4 Mon Sep 17 00:00:00 2001 From: Andrey Akinshin Date: Thu, 12 Oct 2023 13:20:31 +0200 Subject: [PATCH] Support Windows 11 23H2 (10.0.22631) in OsBrandStringHelper --- src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs | 1 + tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs b/src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs index b82575f35c..d4369120eb 100644 --- a/src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs +++ b/src/BenchmarkDotNet/Environments/OsBrandStringHelper.cs @@ -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) diff --git a/tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs b/tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs index 8aafe03fba..5690fbe6b7 100644 --- a/tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs +++ b/tests/BenchmarkDotNet.Tests/Environments/OsBrandStringTests.cs @@ -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);