Skip to content

Commit d1f3bdd

Browse files
committed
Fix tests.
1 parent 4068d13 commit d1f3bdd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Gu.Wpf.NumericInput.Tests/NumericBoxTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ public abstract class NumericBoxTests<TBox, T>
3030
[SetUp]
3131
public void SetUp()
3232
{
33-
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en");
33+
var enUs = CultureInfo.GetCultureInfo("en-US");
34+
Thread.CurrentThread.CurrentUICulture = enUs;
35+
Thread.CurrentThread.CurrentCulture = enUs;
3436
base.Box = this.Creator();
3537
this.Box.IsReadOnly = false;
3638
this.Box.MinValue = this.Min;
3739
this.Box.MaxValue = this.Max;
3840
this.Box.Increment = this.Increment;
39-
this.Box.Culture = Thread.CurrentThread.CurrentCulture;
41+
this.Box.Culture = Thread.CurrentThread.CurrentUICulture;
4042
this.Vm = new DummyVm<T>();
4143
var binding = new Binding("Value")
4244
{

0 commit comments

Comments
 (0)