diff --git a/MiHomeLib/MiHomeLib.csproj b/MiHomeLib/MiHomeLib.csproj
index 9a0ade9..57ac07a 100644
--- a/MiHomeLib/MiHomeLib.csproj
+++ b/MiHomeLib/MiHomeLib.csproj
@@ -2,7 +2,7 @@
MiHomeLib
- netstandard2.0;net461
+ netstandard2.0;net471
MiHomeLib
1.0.15
2.6
@@ -34,10 +34,13 @@ Check the details in the documentation.
default
-
+
+
+
+
diff --git a/MiHomeUnitTests/Devices/SockerPlugTests.cs b/MiHomeUnitTests/Devices/SockerPlugTests.cs
index 1e5e7ad..75f0bc2 100644
--- a/MiHomeUnitTests/Devices/SockerPlugTests.cs
+++ b/MiHomeUnitTests/Devices/SockerPlugTests.cs
@@ -1,4 +1,6 @@
using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
using MiHomeLib;
using MiHomeLib.Commands;
using MiHomeLib.Contracts;
@@ -15,6 +17,7 @@ public class SockerPlugTests : IClassFixture
public SockerPlugTests(MiHomeDeviceFactoryFixture deviceFactory)
{
+ Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
_deviceFactory = deviceFactory;
}
@@ -100,4 +103,4 @@ public void Check_SocketPlug_TurnOff_Command()
It.Is(c => c.ToString() == command)), Times.Once());
}
}
-}
\ No newline at end of file
+}
diff --git a/MiHomeUnitTests/Miio/MiRobotV1Tests.cs b/MiHomeUnitTests/Miio/MiRobotV1Tests.cs
index 2068248..2333efb 100644
--- a/MiHomeUnitTests/Miio/MiRobotV1Tests.cs
+++ b/MiHomeUnitTests/Miio/MiRobotV1Tests.cs
@@ -2,6 +2,8 @@
using MiHomeLib.Devices;
using Moq;
using Xunit;
+using System.Threading;
+using System.Globalization;
namespace MiHomeUnitTests
{
@@ -10,6 +12,8 @@ public class MiRobotV1Tests: MiioDeviceTest
[Fact]
public void ToString_Returns_Valid_State()
{
+ Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
+
// Arrange
var response = "{\"result\":[{\"msg_ver\":8,\"msg_seq\":54,\"state\":8,\"battery\":100,\"clean_time\":729,\"clean_area\":9795000,\"error_code\":0,\"map_present\":1,\"in_cleaning\":0,\"fan_power\":60,\"dnd_enabled\":0}],\"id\":6}\0";
var miioDevice = GetMiioDevice("get_status", response);
@@ -210,4 +214,4 @@ public async Task SpotAsync_Should_Now_Throw_ExceptionsAsync()
miioDevice.Verify(x => x.SendMessageAsync("{\"id\": 1, \"method\": \"app_spot\", \"params\": [\"\"]}"), Times.Once());
}
}
-}
\ No newline at end of file
+}