* Test/System.Windows.Forms/TestHelper.cs: Inconsistent eol fixes and
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / GenerateControlStyleTest.cs
index 6274cefbc81db94d129fdefa21b8bdb064411cd6..58dd1b056cbad5559a02f72bea757c90c2ddc904 100644 (file)
@@ -74,7 +74,7 @@ namespace TestApp {
                                }
                        }
                        file.WriteLine("\t\t\t};\n");
-                       file.WriteLine("\t\t\tAssert.AreEqual(GetStyles(new {0}()), {0}_want, \"{0}Styles\");", name);
+                       file.WriteLine("\t\t\tAssert.AreEqual({0}_want, GetStyles(new {0}()), \"{0}Styles\");", name);
                        file.WriteLine("\t\t}\n\n");
                }
 
@@ -102,7 +102,10 @@ namespace TestApp {
                                TestStyles(file, new ProgressBar(), "ProgressBar");
                                TestStyles(file, new ScrollableControl(), "ScrollableControl");
                                TestStyles(file, new ContainerControl(), "ContainerControl");
-                               TestStyles(file, new Form(), "Form");
+                               Form f = new Form ();
+                               f.ShowInTaskbar = false;
+                               TestStyles(file, f, "Form");
+                               f.Dispose ();
                                TestStyles(file, new PropertyGrid(), "PropertyGrid");
                                TestStyles(file, new DomainUpDown(), "DomainUpDown");
                                TestStyles(file, new NumericUpDown(), "NumericUpDown");