Skip to content

Commit

Permalink
Merge pull request #4821 from buyaa-n/release/5.0.2xx
Browse files Browse the repository at this point in the history
Fix localization failure (#4583)
  • Loading branch information
genlu authored Feb 9, 2021
2 parents 9e6fd80 + 123e99e commit 97205a2
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
using Test.Utilities;
using Xunit;
Expand Down Expand Up @@ -1030,7 +1031,8 @@ public static void WindowsSpecificApi()

await VerifyAnalyzerAsyncCs(source,
VerifyCS.Diagnostic(PlatformCompatibilityAnalyzer.SupportedCsReachable).WithLocation(0).
WithArguments("Some.WindowsSpecificApi()", "'windows' 10.0 and later", "'windows' all versions"));
WithArguments("Some.WindowsSpecificApi()", GetFormattedString(MicrosoftNetCoreAnalyzersResources.PlatformCompatibilityVersionAndLater, "windows", "10.0"),
GetFormattedString(MicrosoftNetCoreAnalyzersResources.PlatformCompatibilityAllVersions, "windows")));
}

[Fact]
Expand Down
Loading

0 comments on commit 97205a2

Please sign in to comment.