From 0a18316f7c0e8c5717385f0921636c62385af189 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Thu, 21 Nov 2024 11:58:56 -0500 Subject: [PATCH] chore: Adjust for newer test version --- src/Uno.UI.Tests/BinderTests/Given_Binder.TwoWay.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Uno.UI.Tests/BinderTests/Given_Binder.TwoWay.cs b/src/Uno.UI.Tests/BinderTests/Given_Binder.TwoWay.cs index a4b78e67bf95..3adde065585b 100644 --- a/src/Uno.UI.Tests/BinderTests/Given_Binder.TwoWay.cs +++ b/src/Uno.UI.Tests/BinderTests/Given_Binder.TwoWay.cs @@ -9,6 +9,7 @@ using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Data; using Uno.UI.Xaml; +using System.Globalization; namespace Uno.UI.Tests.BinderTests { @@ -308,7 +309,9 @@ public object Convert(object value, Type targetType, object parameter, string la if (value != null) { var result = (double)value; - return result.ToString("C"); + + // Required after mstest 3.3.6, which changes the default culture + return result.ToString("C", new CultureInfo("en-US")); } else {