From ff5e6a78c386bc0677139b78c3ff60c5dc5c2065 Mon Sep 17 00:00:00 2001 From: flash2048 Date: Tue, 3 Apr 2018 11:14:21 +0300 Subject: [PATCH] Fix some tests with DateTime in German culture --- .../BindRazorIntegrationTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Microsoft.AspNetCore.Blazor.Build.Test/BindRazorIntegrationTest.cs b/test/Microsoft.AspNetCore.Blazor.Build.Test/BindRazorIntegrationTest.cs index 71941dbd26..94785c1d7e 100644 --- a/test/Microsoft.AspNetCore.Blazor.Build.Test/BindRazorIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Blazor.Build.Test/BindRazorIntegrationTest.cs @@ -307,7 +307,7 @@ namespace Test frames, frame => AssertFrame.Element(frame, "input", 4, 0), frame => AssertFrame.Attribute(frame, "type", "text", 1), - frame => AssertFrame.Attribute(frame, "value", "01/01/2018", 2), + frame => AssertFrame.Attribute(frame, "value", new DateTime(2018, 1, 1).ToString("MM/dd/yyyy"), 2), frame => AssertFrame.Attribute(frame, "onchange", typeof(UIEventHandler), 3), frame => AssertFrame.Whitespace(frame, 4)); } @@ -333,7 +333,7 @@ namespace Test frames, frame => AssertFrame.Element(frame, "input", 4, 0), frame => AssertFrame.Attribute(frame, "type", "text", 1), - frame => AssertFrame.Attribute(frame, "value", "01/01/2018", 2), + frame => AssertFrame.Attribute(frame, "value", new DateTime(2018, 1, 1).ToString("MM/dd/yyyy"), 2), frame => AssertFrame.Attribute(frame, "onchange", typeof(UIEventHandler), 3), frame => AssertFrame.Whitespace(frame, 4)); } @@ -429,7 +429,7 @@ namespace Test frames, frame => AssertFrame.Element(frame, "input", 4, 0), frame => AssertFrame.Attribute(frame, "type", "text", 1), - frame => AssertFrame.Attribute(frame, "value", "01/01", 2), + frame => AssertFrame.Attribute(frame, "value", new DateTime(2018, 1, 1).ToString("MM/dd"), 2), frame => AssertFrame.Attribute(frame, "onchange", typeof(UIEventHandler), 3), frame => AssertFrame.Whitespace(frame, 4)); }