From 8ac1adac8ee04a57ebb51c0168f5198e1e0eef78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 9 Aug 2016 21:50:44 +0200 Subject: [PATCH] [WinForms] Fix a test to correctly check for Mono typeof (int).GetType ().GetType ().Name is now RuntimeType since https://github.com/mono/mono/pull/3045. We did not notice this since most of our bots don't run with en-US locale set which this test requires. --- .../Test/System.Windows.Forms/DateTimePickerTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System.Windows.Forms/Test/System.Windows.Forms/DateTimePickerTest.cs b/mcs/class/System.Windows.Forms/Test/System.Windows.Forms/DateTimePickerTest.cs index 17156b8b708..7fc177f9851 100644 --- a/mcs/class/System.Windows.Forms/Test/System.Windows.Forms/DateTimePickerTest.cs +++ b/mcs/class/System.Windows.Forms/Test/System.Windows.Forms/DateTimePickerTest.cs @@ -3014,7 +3014,7 @@ namespace MonoTests.System.Windows.Forms { * Without this everytime a "y" or "yy" comes first in the format, it will always show as * a 4-digit string if this is not done. */ - if (typeof (int).GetType ().GetType ().Name != "MonoType") { + if (Type.GetType ("Mono.Runtime") == null) { // Only do this for MS, not implemented in Mono. dt.CustomFormat = "y"; Assert.AreEqual ("2007", dt.Text, "#msbug1?"); -- 2.25.1