Ensure the System.Web.UI.WebControls.RepeatInfo_Autogen test runs under en-US
authorNiklas Therning <niklas@therning.org>
Thu, 1 Dec 2016 12:55:29 +0000 (13:55 +0100)
committerNiklas Therning <niklas@therning.org>
Thu, 1 Dec 2016 14:59:45 +0000 (15:59 +0100)
mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.auto.4.0.cs
mcs/class/System.Web/Test/System.Web.UI.WebControls/RepeatInfoTest.gen.cs

index a3772412270d2034fc106168a237dd41420adfa9..968e5c214c53d986ddf28f4557fc2189144d0d03 100644 (file)
@@ -1,7 +1,7 @@
 
 // THIS IS AUTOGENERATED DO NOT EDIT
 //
-// Generated on Microsoft .NET runtime v4.0.30319.1
+// Generated on Microsoft .NET runtime v4.0.30319.42000
 //
 // Authors:
 //    Ben Maurer (bmaurer@novell.com)
@@ -42,6 +42,7 @@ using MonoTests.Helpers;
 
 namespace MonoTests.System.Web.UI.WebControls {
 [TestFixture]
+[SetCulture ("en-us")]
 public class RepeatInfo_Autogen {
 
        [Test]
index 4d87fce7d59a23f469902a2e534f648973e0d845..a06b3be9cd9a760c4ac2de4091793aa49039b700 100644 (file)
@@ -57,7 +57,6 @@ class X {
 
        static void Main ()
        {
-               Console.WriteLine ("#if NET_4_0");
                bool isMono = Type.GetType ("Mono.Runtime", false) != null;
 
                Console.WriteLine (@"
@@ -104,6 +103,7 @@ using MonoTests.Helpers;
 
 namespace MonoTests.System.Web.UI.WebControls {{
 [TestFixture]
+[SetCulture (""en-us"")]
 public class RepeatInfo_Autogen {{
 ", isMono ? "Mono" : "Microsoft .NET", Environment.Version);           
                int num = 0;
@@ -180,8 +180,7 @@ public class RepeatInfo_Autogen {{
                }
                Console.WriteLine (@"
 }
-}
-#endif");
+}");
        }
 
        static void BuildTestCode (StringBuilder sb, Exception ex, int cols, int cnt, RepeatDirection d, RepeatLayout l, bool oti, bool hdr, bool ftr, bool sep, string exp, int num)