Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static bool Verbose
// Windows 10 October 2018 Update
public static bool IsWindows10Version1809OrGreater =>
IsWindows && GetWindowsVersion() == 10 && GetWindowsMinorVersion() == 0 && GetWindowsBuildNumber() >= 17763;

public static bool IsWindowsIoTCore
{
get
Expand Down
14 changes: 0 additions & 14 deletions src/coreclr/tests/src/Regressions/coreclr/0570/Test570.csproj

This file was deleted.

42 changes: 0 additions & 42 deletions src/coreclr/tests/src/Regressions/coreclr/0570/test570.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;
using Xunit;

namespace System.Globalization.Tests
{
public class NumberFormatInfoPercentDecimalDigits
{
[Fact]
public void PercentDecimalDigits_GetInvariantInfo_ReturnsExpected()
public static IEnumerable<object[]> PercentDecimalDigits_TestData()
{
yield return new object[] { NumberFormatInfo.InvariantInfo, 2, 2 };
yield return new object[] { CultureInfo.GetCultureInfo("en-US").NumberFormat, 2, 3 };
}

[Theory]
[MemberData(nameof(PercentDecimalDigits_TestData))]
public void PercentDecimalDigits_Get_ReturnsExpected(NumberFormatInfo format, int expectedNls, int expectedIcu)
{
Assert.Equal(2, NumberFormatInfo.InvariantInfo.PercentDecimalDigits);
int expected = PlatformDetection.IsNlsGlobalization ? expectedNls : expectedIcu;
Assert.Equal(expected, format.PercentDecimalDigits);
}

[Theory]
Expand Down