From 2d6468d87a9051a3f7a55ed7331ffaa9de851abe Mon Sep 17 00:00:00 2001
From: nikitaodnorob <nikitaodnorob@gmail.com>
Date: Sat, 2 Nov 2019 20:42:59 +0300
Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?=
 =?UTF-8?q?=D0=BA=D0=B0=20Culture=20=D0=BF=D1=80=D0=B8=20=D1=82=D0=B5?=
 =?UTF-8?q?=D1=81=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20?=
 =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20?=
 =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=BE=D0=B2?=
 =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20string=20=D0=B2=20double=20(=D0=B4?=
 =?UTF-8?q?=D1=80=D0=BE=D0=B1=D0=BD=D0=B0=D1=8F=20=D1=87=D0=B0=D1=81=D1=82?=
 =?UTF-8?q?=D1=8C=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8F=D0=B5=D1=82=D1=81?=
 =?UTF-8?q?=D1=8F=20=D1=82=D0=BE=D1=87=D0=BA=D0=BE=D0=B9)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 TestLexer/Tests.cs | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/TestLexer/Tests.cs b/TestLexer/Tests.cs
index 6fcf76c..6b68ade 100644
--- a/TestLexer/Tests.cs
+++ b/TestLexer/Tests.cs
@@ -378,25 +378,25 @@ namespace TestLexer
     [TestFixture]
     public class TestDoubleLexer
     {
+        public TestDoubleLexer()
+        {
+            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
+        }
+
         [Test]
         public void TestDoubleParse()
         {
-
             DoubleLexer l = new DoubleLexer("123.4");
             Assert.IsTrue(l.Parse(), "Не понимает 123.4");
-            Assert.AreEqual(l.ParseResult, 123.4, 0.01, "Неправильно прочитал 123.4");
+            Assert.AreEqual(123.4, l.ParseResult, 0.01, "Неправильно прочитал 123.4");
 
             l = new DoubleLexer("123");
             Assert.IsTrue(l.Parse(), "Не понимает 123");
-            Assert.AreEqual(l.ParseResult, 123, 0.01, "Неправильно прочитал 123");
-
-            l = new DoubleLexer("0.4");
-            Assert.IsTrue(l.Parse(), "Не понимает 0.4");
-            Assert.AreEqual(l.ParseResult, 0.4, 0.01, "Неправильно прочитал 0.4");
+            Assert.AreEqual(123, l.ParseResult, 0.01, "Неправильно прочитал 123");
 
             l = new DoubleLexer("0.4");
             Assert.IsTrue(l.Parse(), "Не понимает 0.4");
-            Assert.AreEqual(l.ParseResult, 0.4, 0.01, "Неправильно прочитал 0.4");
+            Assert.AreEqual(0.4, l.ParseResult, 0.01, "Неправильно прочитал 0.4");
         }
 
         [Test]
-- 
GitLab