mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
Fix failing tests (#2095)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System.Text.Json;
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Bit.Core.Utilities;
|
||||
using Bit.Test.Common.Helpers;
|
||||
@ -41,6 +42,17 @@ namespace Bit.Core.Test.Utilities
|
||||
Assert.Equal("1.2", obj.EnumerableStringProp.ElementAt(1));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Read_Float_Success_Culture()
|
||||
{
|
||||
var ci = new CultureInfo("sv-SE");
|
||||
Thread.CurrentThread.CurrentCulture = ci;
|
||||
Thread.CurrentThread.CurrentUICulture = ci;
|
||||
|
||||
var obj = JsonSerializer.Deserialize<TestObject>(boolJson);
|
||||
Assert.Equal("1.2", obj.EnumerableStringProp.ElementAt(1));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Read_BigNumbers_Success()
|
||||
{
|
||||
|
Reference in New Issue
Block a user