Make a copy of the old ZipLib
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / ControlStyleTest.cs
1 //
2 // ControlStyleTest.cs (Auto-generated by GenerateControlStyleTest.cs).
3 //
4 // Author: 
5 //   Peter Dennis Bartok (pbartok@novell.com)
6 //
7 // (C) 2005 Novell, Inc. (http://www.novell.com)
8 //
9 using System;
10 using System.Windows.Forms;
11 using System.Drawing;
12 using System.Reflection;
13 using NUnit.Framework;
14
15 namespace MonoTests.System.Windows.Forms {
16         [TestFixture]
17         public class TestControlStyle {
18
19                 static Array style_values = Enum.GetValues(typeof(ControlStyles));
20                 static string[] style_names = Enum.GetNames(typeof(ControlStyles));
21
22                 public static string[] GetStyles(Control control) {
23                         string[] result;
24
25                         result = new string[style_names.Length];
26
27                         for (int i = 0; i < style_values.Length; i++) {
28                                 result[i] = style_names[i] + "=" + control.GetType().GetMethod("GetStyle", BindingFlags.NonPublic | BindingFlags.Instance).Invoke(control, new object[1] {(ControlStyles)style_values.GetValue(i)});
29                         }
30
31                         return result;
32                 }
33
34                 [Test]
35                 public void ControlStyleTest ()
36                 {
37                         string[] Control_want = {
38                                 "ContainerControl=False",
39                                 "UserPaint=True",
40                                 "Opaque=False",
41                                 "ResizeRedraw=False",
42                                 "FixedWidth=False",
43                                 "FixedHeight=False",
44                                 "StandardClick=True",
45                                 "Selectable=True",
46                                 "UserMouse=False",
47                                 "SupportsTransparentBackColor=False",
48                                 "StandardDoubleClick=True",
49                                 "AllPaintingInWmPaint=True",
50                                 "CacheText=False",
51                                 "EnableNotifyMessage=False",
52                                 "DoubleBuffer=False"
53                         };
54
55                         Assert.AreEqual(Control_want, GetStyles(new Control()), "ControlStyles");
56                 }
57
58
59                 [Test]
60                 public void ButtonStyleTest ()
61                 {
62                         string[] Button_want = {
63                                 "ContainerControl=False",
64                                 "UserPaint=True",
65                                 "Opaque=True",
66                                 "ResizeRedraw=True",
67                                 "FixedWidth=False",
68                                 "FixedHeight=False",
69                                 "StandardClick=False",
70                                 "Selectable=True",
71                                 "UserMouse=True",
72                                 "SupportsTransparentBackColor=True",
73                                 "StandardDoubleClick=False",
74                                 "AllPaintingInWmPaint=True",
75                                 "CacheText=True",
76                                 "EnableNotifyMessage=False",
77                                 "DoubleBuffer=True"
78                         };
79
80                         Assert.AreEqual(Button_want, GetStyles(new Button()), "ButtonStyles");
81                 }
82
83
84                 [Test]
85                 public void CheckBoxStyleTest ()
86                 {
87                         string[] CheckBox_want = {
88                                 "ContainerControl=False",
89                                 "UserPaint=True",
90                                 "Opaque=True",
91                                 "ResizeRedraw=True",
92                                 "FixedWidth=False",
93                                 "FixedHeight=False",
94                                 "StandardClick=False",
95                                 "Selectable=True",
96                                 "UserMouse=True",
97                                 "SupportsTransparentBackColor=True",
98                                 "StandardDoubleClick=False",
99                                 "AllPaintingInWmPaint=True",
100                                 "CacheText=True",
101                                 "EnableNotifyMessage=False",
102                                 "DoubleBuffer=True"
103                         };
104
105                         Assert.AreEqual(CheckBox_want, GetStyles(new CheckBox()), "CheckBoxStyles");
106                 }
107
108
109                 [Test]
110                 public void RadioButtonStyleTest ()
111                 {
112                         string[] RadioButton_want = {
113                                 "ContainerControl=False",
114                                 "UserPaint=True",
115                                 "Opaque=True",
116                                 "ResizeRedraw=True",
117                                 "FixedWidth=False",
118                                 "FixedHeight=False",
119                                 "StandardClick=False",
120                                 "Selectable=True",
121                                 "UserMouse=True",
122                                 "SupportsTransparentBackColor=True",
123                                 "StandardDoubleClick=True",
124                                 "AllPaintingInWmPaint=True",
125                                 "CacheText=True",
126                                 "EnableNotifyMessage=False",
127                                 "DoubleBuffer=True"
128                         };
129
130                         Assert.AreEqual(RadioButton_want, GetStyles(new RadioButton()), "RadioButtonStyles");
131                 }
132
133
134                 [Test]
135                 public void DataGridStyleTest ()
136                 {
137                         string[] DataGrid_want = {
138                                 "ContainerControl=False",
139                                 "UserPaint=True",
140                                 "Opaque=False",
141                                 "ResizeRedraw=False",
142                                 "FixedWidth=False",
143                                 "FixedHeight=False",
144                                 "StandardClick=True",
145                                 "Selectable=True",
146                                 "UserMouse=True",
147                                 "SupportsTransparentBackColor=False",
148                                 "StandardDoubleClick=True",
149                                 "AllPaintingInWmPaint=True",
150                                 "CacheText=False",
151                                 "EnableNotifyMessage=False",
152                                 "DoubleBuffer=False"
153                         };
154
155                         Assert.AreEqual(DataGrid_want, GetStyles(new DataGrid()), "DataGridStyles");
156                 }
157
158
159                 [Test]
160                 public void DateTimePickerStyleTest ()
161                 {
162                         string[] DateTimePicker_want = {
163                                 "ContainerControl=False",
164                                 "UserPaint=False",
165                                 "Opaque=False",
166                                 "ResizeRedraw=False",
167                                 "FixedWidth=False",
168                                 "FixedHeight=True",
169                                 "StandardClick=False",
170                                 "Selectable=True",
171                                 "UserMouse=False",
172                                 "SupportsTransparentBackColor=False",
173                                 "StandardDoubleClick=True",
174                                 "AllPaintingInWmPaint=True",
175                                 "CacheText=False",
176                                 "EnableNotifyMessage=False",
177                                 "DoubleBuffer=False"
178                         };
179
180                         Assert.AreEqual(DateTimePicker_want, GetStyles(new DateTimePicker()), "DateTimePickerStyles");
181                 }
182
183
184                 [Test]
185                 public void GroupBoxStyleTest ()
186                 {
187                         string[] GroupBox_want = {
188                                 "ContainerControl=True",
189                                 "UserPaint=True",
190                                 "Opaque=False",
191                                 "ResizeRedraw=True",
192                                 "FixedWidth=False",
193                                 "FixedHeight=False",
194                                 "StandardClick=True",
195                                 "Selectable=False",
196                                 "UserMouse=False",
197                                 "SupportsTransparentBackColor=True",
198                                 "StandardDoubleClick=True",
199                                 "AllPaintingInWmPaint=True",
200                                 "CacheText=False",
201                                 "EnableNotifyMessage=False",
202                                 "DoubleBuffer=False"
203                         };
204
205                         Assert.AreEqual(GroupBox_want, GetStyles(new GroupBox()), "GroupBoxStyles");
206                 }
207
208
209                 [Test]
210                 public void LabelStyleTest ()
211                 {
212                         string[] Label_want = {
213                                 "ContainerControl=False",
214                                 "UserPaint=True",
215                                 "Opaque=False",
216                                 "ResizeRedraw=True",
217                                 "FixedWidth=False",
218                                 "FixedHeight=False",
219                                 "StandardClick=True",
220                                 "Selectable=False",
221                                 "UserMouse=False",
222                                 "SupportsTransparentBackColor=True",
223                                 "StandardDoubleClick=True",
224                                 "AllPaintingInWmPaint=True",
225                                 "CacheText=False",
226                                 "EnableNotifyMessage=False",
227                                 "DoubleBuffer=True"
228                         };
229
230                         Assert.AreEqual(Label_want, GetStyles(new Label()), "LabelStyles");
231                 }
232
233
234                 [Test]
235                 public void LinkLabelStyleTest ()
236                 {
237                         string[] LinkLabel_want = {
238                                 "ContainerControl=False",
239                                 "UserPaint=True",
240                                 "Opaque=True",
241                                 "ResizeRedraw=True",
242                                 "FixedWidth=False",
243                                 "FixedHeight=False",
244                                 "StandardClick=True",
245                                 "Selectable=False",
246                                 "UserMouse=False",
247                                 "SupportsTransparentBackColor=True",
248                                 "StandardDoubleClick=True",
249                                 "AllPaintingInWmPaint=True",
250                                 "CacheText=False",
251                                 "EnableNotifyMessage=False",
252                                 "DoubleBuffer=True"
253                         };
254
255                         Assert.AreEqual(LinkLabel_want, GetStyles(new LinkLabel()), "LinkLabelStyles");
256                 }
257
258
259                 [Test]
260                 public void ComboBoxStyleTest ()
261                 {
262                         string[] ComboBox_want = {
263                                 "ContainerControl=False",
264                                 "UserPaint=False",
265                                 "Opaque=False",
266                                 "ResizeRedraw=False",
267                                 "FixedWidth=False",
268                                 "FixedHeight=False",
269                                 "StandardClick=False",
270                                 "Selectable=True",
271                                 "UserMouse=False",
272                                 "SupportsTransparentBackColor=False",
273                                 "StandardDoubleClick=True",
274                                 "AllPaintingInWmPaint=True",
275                                 "CacheText=False",
276                                 "EnableNotifyMessage=False",
277                                 "DoubleBuffer=False"
278                         };
279
280                         Assert.AreEqual(ComboBox_want, GetStyles(new ComboBox()), "ComboBoxStyles");
281                 }
282
283
284                 [Test]
285                 public void ListBoxStyleTest ()
286                 {
287                         string[] ListBox_want = {
288                                 "ContainerControl=False",
289                                 "UserPaint=False",
290                                 "Opaque=False",
291                                 "ResizeRedraw=False",
292                                 "FixedWidth=False",
293                                 "FixedHeight=False",
294                                 "StandardClick=False",
295                                 "Selectable=True",
296                                 "UserMouse=False",
297                                 "SupportsTransparentBackColor=False",
298                                 "StandardDoubleClick=True",
299                                 "AllPaintingInWmPaint=True",
300                                 "CacheText=False",
301                                 "EnableNotifyMessage=False",
302                                 "DoubleBuffer=False"
303                         };
304
305                         Assert.AreEqual(ListBox_want, GetStyles(new ListBox()), "ListBoxStyles");
306                 }
307
308
309                 [Test]
310                 public void CheckedListBoxStyleTest ()
311                 {
312                         string[] CheckedListBox_want = {
313                                 "ContainerControl=False",
314                                 "UserPaint=False",
315                                 "Opaque=False",
316                                 "ResizeRedraw=True",
317                                 "FixedWidth=False",
318                                 "FixedHeight=False",
319                                 "StandardClick=False",
320                                 "Selectable=True",
321                                 "UserMouse=False",
322                                 "SupportsTransparentBackColor=False",
323                                 "StandardDoubleClick=True",
324                                 "AllPaintingInWmPaint=True",
325                                 "CacheText=False",
326                                 "EnableNotifyMessage=False",
327                                 "DoubleBuffer=False"
328                         };
329
330                         Assert.AreEqual(CheckedListBox_want, GetStyles(new CheckedListBox()), "CheckedListBoxStyles");
331                 }
332
333
334                 [Test]
335                 public void ListViewStyleTest ()
336                 {
337                         string[] ListView_want = {
338                                 "ContainerControl=False",
339                                 "UserPaint=False",
340                                 "Opaque=False",
341                                 "ResizeRedraw=False",
342                                 "FixedWidth=False",
343                                 "FixedHeight=False",
344                                 "StandardClick=False",
345                                 "Selectable=True",
346                                 "UserMouse=False",
347                                 "SupportsTransparentBackColor=False",
348                                 "StandardDoubleClick=True",
349                                 "AllPaintingInWmPaint=True",
350                                 "CacheText=False",
351                                 "EnableNotifyMessage=False",
352                                 "DoubleBuffer=False"
353                         };
354
355                         Assert.AreEqual(ListView_want, GetStyles(new ListView()), "ListViewStyles");
356                 }
357
358
359                 [Test]
360                 public void MdiClientStyleTest ()
361                 {
362                         string[] MdiClient_want = {
363                                 "ContainerControl=False",
364                                 "UserPaint=True",
365                                 "Opaque=False",
366                                 "ResizeRedraw=False",
367                                 "FixedWidth=False",
368                                 "FixedHeight=False",
369                                 "StandardClick=True",
370                                 "Selectable=False",
371                                 "UserMouse=False",
372                                 "SupportsTransparentBackColor=False",
373                                 "StandardDoubleClick=True",
374                                 "AllPaintingInWmPaint=True",
375                                 "CacheText=False",
376                                 "EnableNotifyMessage=False",
377                                 "DoubleBuffer=False"
378                         };
379
380                         Assert.AreEqual(MdiClient_want, GetStyles(new MdiClient()), "MdiClientStyles");
381                 }
382
383
384                 [Test]
385                 public void MonthCalendarStyleTest ()
386                 {
387                         string[] MonthCalendar_want = {
388                                 "ContainerControl=False",
389                                 "UserPaint=False",
390                                 "Opaque=False",
391                                 "ResizeRedraw=False",
392                                 "FixedWidth=False",
393                                 "FixedHeight=False",
394                                 "StandardClick=False",
395                                 "Selectable=True",
396                                 "UserMouse=False",
397                                 "SupportsTransparentBackColor=False",
398                                 "StandardDoubleClick=True",
399                                 "AllPaintingInWmPaint=True",
400                                 "CacheText=False",
401                                 "EnableNotifyMessage=False",
402                                 "DoubleBuffer=False"
403                         };
404
405                         Assert.AreEqual(MonthCalendar_want, GetStyles(new MonthCalendar()), "MonthCalendarStyles");
406                 }
407
408
409                 [Test]
410                 public void PictureBoxStyleTest ()
411                 {
412                         string[] PictureBox_want = {
413                                 "ContainerControl=False",
414                                 "UserPaint=True",
415                                 "Opaque=False",
416                                 "ResizeRedraw=False",
417                                 "FixedWidth=False",
418                                 "FixedHeight=False",
419                                 "StandardClick=True",
420                                 "Selectable=False",
421                                 "UserMouse=False",
422                                 "SupportsTransparentBackColor=True",
423                                 "StandardDoubleClick=True",
424                                 "AllPaintingInWmPaint=True",
425                                 "CacheText=False",
426                                 "EnableNotifyMessage=False",
427                                 "DoubleBuffer=True"
428                         };
429
430                         Assert.AreEqual(PictureBox_want, GetStyles(new PictureBox()), "PictureBoxStyles");
431                 }
432
433
434                 [Test]
435                 public void ProgressBarStyleTest ()
436                 {
437                         string[] ProgressBar_want = {
438                                 "ContainerControl=False",
439                                 "UserPaint=False",
440                                 "Opaque=False",
441                                 "ResizeRedraw=False",
442                                 "FixedWidth=False",
443                                 "FixedHeight=False",
444                                 "StandardClick=True",
445                                 "Selectable=False",
446                                 "UserMouse=False",
447                                 "SupportsTransparentBackColor=False",
448                                 "StandardDoubleClick=True",
449                                 "AllPaintingInWmPaint=True",
450                                 "CacheText=False",
451                                 "EnableNotifyMessage=False",
452                                 "DoubleBuffer=False"
453                         };
454
455                         Assert.AreEqual(ProgressBar_want, GetStyles(new ProgressBar()), "ProgressBarStyles");
456                 }
457
458
459                 [Test]
460                 public void ScrollableControlStyleTest ()
461                 {
462                         string[] ScrollableControl_want = {
463                                 "ContainerControl=True",
464                                 "UserPaint=True",
465                                 "Opaque=False",
466                                 "ResizeRedraw=False",
467                                 "FixedWidth=False",
468                                 "FixedHeight=False",
469                                 "StandardClick=True",
470                                 "Selectable=True",
471                                 "UserMouse=False",
472                                 "SupportsTransparentBackColor=False",
473                                 "StandardDoubleClick=True",
474                                 "AllPaintingInWmPaint=False",
475                                 "CacheText=False",
476                                 "EnableNotifyMessage=False",
477                                 "DoubleBuffer=False"
478                         };
479
480                         Assert.AreEqual(ScrollableControl_want, GetStyles(new ScrollableControl()), "ScrollableControlStyles");
481                 }
482
483
484                 [Test]
485                 public void ContainerControlStyleTest ()
486                 {
487                         string[] ContainerControl_want = {
488                                 "ContainerControl=True",
489                                 "UserPaint=True",
490                                 "Opaque=False",
491                                 "ResizeRedraw=False",
492                                 "FixedWidth=False",
493                                 "FixedHeight=False",
494                                 "StandardClick=True",
495                                 "Selectable=True",
496                                 "UserMouse=False",
497                                 "SupportsTransparentBackColor=False",
498                                 "StandardDoubleClick=True",
499                                 "AllPaintingInWmPaint=False",
500                                 "CacheText=False",
501                                 "EnableNotifyMessage=False",
502                                 "DoubleBuffer=False"
503                         };
504
505                         Assert.AreEqual(ContainerControl_want, GetStyles(new ContainerControl()), "ContainerControlStyles");
506                 }
507
508
509                 [Test]
510                 public void FormStyleTest ()
511                 {
512                         string[] Form_want = {
513                                 "ContainerControl=True",
514                                 "UserPaint=True",
515                                 "Opaque=False",
516                                 "ResizeRedraw=False",
517                                 "FixedWidth=False",
518                                 "FixedHeight=False",
519                                 "StandardClick=True",
520                                 "Selectable=True",
521                                 "UserMouse=False",
522                                 "SupportsTransparentBackColor=False",
523                                 "StandardDoubleClick=True",
524                                 "AllPaintingInWmPaint=False",
525                                 "CacheText=False",
526                                 "EnableNotifyMessage=False",
527                                 "DoubleBuffer=False"
528                         };
529
530                         Assert.AreEqual(Form_want, GetStyles(new Form()), "FormStyles");
531                 }
532
533
534                 [Test]
535                 public void PropertyGridStyleTest ()
536                 {
537                         string[] PropertyGrid_want = {
538                                 "ContainerControl=True",
539                                 "UserPaint=True",
540                                 "Opaque=False",
541                                 "ResizeRedraw=False",
542                                 "FixedWidth=False",
543                                 "FixedHeight=False",
544                                 "StandardClick=True",
545                                 "Selectable=True",
546                                 "UserMouse=False",
547                                 "SupportsTransparentBackColor=False",
548                                 "StandardDoubleClick=True",
549                                 "AllPaintingInWmPaint=False",
550                                 "CacheText=False",
551                                 "EnableNotifyMessage=False",
552                                 "DoubleBuffer=False"
553                         };
554
555                         Assert.AreEqual(PropertyGrid_want, GetStyles(new PropertyGrid()), "PropertyGridStyles");
556                 }
557
558
559                 [Test]
560                 public void DomainUpDownStyleTest ()
561                 {
562                         string[] DomainUpDown_want = {
563                                 "ContainerControl=True",
564                                 "UserPaint=True",
565                                 "Opaque=False",
566                                 "ResizeRedraw=False",
567                                 "FixedWidth=False",
568                                 "FixedHeight=True",
569                                 "StandardClick=True",
570                                 "Selectable=True",
571                                 "UserMouse=False",
572                                 "SupportsTransparentBackColor=False",
573                                 "StandardDoubleClick=True",
574                                 "AllPaintingInWmPaint=False",
575                                 "CacheText=False",
576                                 "EnableNotifyMessage=False",
577                                 "DoubleBuffer=False"
578                         };
579
580                         Assert.AreEqual(DomainUpDown_want, GetStyles(new DomainUpDown()), "DomainUpDownStyles");
581                 }
582
583
584                 [Test]
585                 public void NumericUpDownStyleTest ()
586                 {
587                         string[] NumericUpDown_want = {
588                                 "ContainerControl=True",
589                                 "UserPaint=True",
590                                 "Opaque=False",
591                                 "ResizeRedraw=False",
592                                 "FixedWidth=False",
593                                 "FixedHeight=True",
594                                 "StandardClick=True",
595                                 "Selectable=True",
596                                 "UserMouse=False",
597                                 "SupportsTransparentBackColor=False",
598                                 "StandardDoubleClick=True",
599                                 "AllPaintingInWmPaint=False",
600                                 "CacheText=False",
601                                 "EnableNotifyMessage=False",
602                                 "DoubleBuffer=False"
603                         };
604
605                         Assert.AreEqual(NumericUpDown_want, GetStyles(new NumericUpDown()), "NumericUpDownStyles");
606                 }
607
608
609                 [Test]
610                 public void UserControlStyleTest ()
611                 {
612                         string[] UserControl_want = {
613                                 "ContainerControl=True",
614                                 "UserPaint=True",
615                                 "Opaque=False",
616                                 "ResizeRedraw=False",
617                                 "FixedWidth=False",
618                                 "FixedHeight=False",
619                                 "StandardClick=True",
620                                 "Selectable=True",
621                                 "UserMouse=False",
622                                 "SupportsTransparentBackColor=False",
623                                 "StandardDoubleClick=True",
624                                 "AllPaintingInWmPaint=False",
625                                 "CacheText=False",
626                                 "EnableNotifyMessage=False",
627                                 "DoubleBuffer=False"
628                         };
629
630                         Assert.AreEqual(UserControl_want, GetStyles(new UserControl()), "UserControlStyles");
631                 }
632
633
634                 [Test]
635                 public void PanelStyleTest ()
636                 {
637                         string[] Panel_want = {
638                                 "ContainerControl=True",
639                                 "UserPaint=True",
640                                 "Opaque=False",
641                                 "ResizeRedraw=False",
642                                 "FixedWidth=False",
643                                 "FixedHeight=False",
644                                 "StandardClick=True",
645                                 "Selectable=False",
646                                 "UserMouse=False",
647                                 "SupportsTransparentBackColor=True",
648                                 "StandardDoubleClick=True",
649                                 "AllPaintingInWmPaint=False",
650                                 "CacheText=False",
651                                 "EnableNotifyMessage=False",
652                                 "DoubleBuffer=False"
653                         };
654
655                         Assert.AreEqual(Panel_want, GetStyles(new Panel()), "PanelStyles");
656                 }
657
658
659                 [Test]
660                 public void TabPageStyleTest ()
661                 {
662                         string[] TabPage_want = {
663                                 "ContainerControl=True",
664                                 "UserPaint=True",
665                                 "Opaque=False",
666                                 "ResizeRedraw=False",
667                                 "FixedWidth=False",
668                                 "FixedHeight=False",
669                                 "StandardClick=True",
670                                 "Selectable=False",
671                                 "UserMouse=False",
672                                 "SupportsTransparentBackColor=True",
673                                 "StandardDoubleClick=True",
674                                 "AllPaintingInWmPaint=False",
675                                 "CacheText=True",
676                                 "EnableNotifyMessage=False",
677                                 "DoubleBuffer=False"
678                         };
679
680                         Assert.AreEqual(TabPage_want, GetStyles(new TabPage()), "TabPageStyles");
681                 }
682
683
684                 [Test]
685                 public void HScrollBarStyleTest ()
686                 {
687                         string[] HScrollBar_want = {
688                                 "ContainerControl=False",
689                                 "UserPaint=False",
690                                 "Opaque=False",
691                                 "ResizeRedraw=False",
692                                 "FixedWidth=False",
693                                 "FixedHeight=False",
694                                 "StandardClick=False",
695                                 "Selectable=True",
696                                 "UserMouse=False",
697                                 "SupportsTransparentBackColor=False",
698                                 "StandardDoubleClick=True",
699                                 "AllPaintingInWmPaint=True",
700                                 "CacheText=False",
701                                 "EnableNotifyMessage=False",
702                                 "DoubleBuffer=False"
703                         };
704
705                         Assert.AreEqual(HScrollBar_want, GetStyles(new HScrollBar()), "HScrollBarStyles");
706                 }
707
708
709                 [Test]
710                 public void VScrollBarStyleTest ()
711                 {
712                         string[] VScrollBar_want = {
713                                 "ContainerControl=False",
714                                 "UserPaint=False",
715                                 "Opaque=False",
716                                 "ResizeRedraw=False",
717                                 "FixedWidth=False",
718                                 "FixedHeight=False",
719                                 "StandardClick=False",
720                                 "Selectable=True",
721                                 "UserMouse=False",
722                                 "SupportsTransparentBackColor=False",
723                                 "StandardDoubleClick=True",
724                                 "AllPaintingInWmPaint=True",
725                                 "CacheText=False",
726                                 "EnableNotifyMessage=False",
727                                 "DoubleBuffer=False"
728                         };
729
730                         Assert.AreEqual(VScrollBar_want, GetStyles(new VScrollBar()), "VScrollBarStyles");
731                 }
732
733
734                 [Test]
735                 public void SplitterStyleTest ()
736                 {
737                         string[] Splitter_want = {
738                                 "ContainerControl=False",
739                                 "UserPaint=True",
740                                 "Opaque=False",
741                                 "ResizeRedraw=False",
742                                 "FixedWidth=False",
743                                 "FixedHeight=False",
744                                 "StandardClick=True",
745                                 "Selectable=False",
746                                 "UserMouse=False",
747                                 "SupportsTransparentBackColor=False",
748                                 "StandardDoubleClick=True",
749                                 "AllPaintingInWmPaint=True",
750                                 "CacheText=False",
751                                 "EnableNotifyMessage=False",
752                                 "DoubleBuffer=False"
753                         };
754
755                         Assert.AreEqual(Splitter_want, GetStyles(new Splitter()), "SplitterStyles");
756                 }
757
758
759                 [Test]
760                 public void StatusBarStyleTest ()
761                 {
762                         string[] StatusBar_want = {
763                                 "ContainerControl=False",
764                                 "UserPaint=False",
765                                 "Opaque=False",
766                                 "ResizeRedraw=False",
767                                 "FixedWidth=False",
768                                 "FixedHeight=False",
769                                 "StandardClick=True",
770                                 "Selectable=False",
771                                 "UserMouse=False",
772                                 "SupportsTransparentBackColor=False",
773                                 "StandardDoubleClick=True",
774                                 "AllPaintingInWmPaint=True",
775                                 "CacheText=False",
776                                 "EnableNotifyMessage=False",
777                                 "DoubleBuffer=False"
778                         };
779
780                         Assert.AreEqual(StatusBar_want, GetStyles(new StatusBar()), "StatusBarStyles");
781                 }
782
783
784                 [Test]
785                 public void TabControlStyleTest ()
786                 {
787                         string[] TabControl_want = {
788                                 "ContainerControl=False",
789                                 "UserPaint=False",
790                                 "Opaque=False",
791                                 "ResizeRedraw=False",
792                                 "FixedWidth=False",
793                                 "FixedHeight=False",
794                                 "StandardClick=True",
795                                 "Selectable=True",
796                                 "UserMouse=False",
797                                 "SupportsTransparentBackColor=False",
798                                 "StandardDoubleClick=True",
799                                 "AllPaintingInWmPaint=True",
800                                 "CacheText=False",
801                                 "EnableNotifyMessage=False",
802                                 "DoubleBuffer=False"
803                         };
804
805                         Assert.AreEqual(TabControl_want, GetStyles(new TabControl()), "TabControlStyles");
806                 }
807
808
809                 [Test]
810                 public void RichTextBoxStyleTest ()
811                 {
812                         string[] RichTextBox_want = {
813                                 "ContainerControl=False",
814                                 "UserPaint=False",
815                                 "Opaque=False",
816                                 "ResizeRedraw=False",
817                                 "FixedWidth=False",
818                                 "FixedHeight=False",
819                                 "StandardClick=False",
820                                 "Selectable=True",
821                                 "UserMouse=False",
822                                 "SupportsTransparentBackColor=False",
823                                 "StandardDoubleClick=True",
824                                 "AllPaintingInWmPaint=True",
825                                 "CacheText=False",
826                                 "EnableNotifyMessage=False",
827                                 "DoubleBuffer=False"
828                         };
829
830                         Assert.AreEqual(RichTextBox_want, GetStyles(new RichTextBox()), "RichTextBoxStyles");
831                 }
832
833
834                 [Test]
835                 public void TextBoxStyleTest ()
836                 {
837                         string[] TextBox_want = {
838                                 "ContainerControl=False",
839                                 "UserPaint=False",
840                                 "Opaque=False",
841                                 "ResizeRedraw=False",
842                                 "FixedWidth=False",
843                                 "FixedHeight=True",
844                                 "StandardClick=False",
845                                 "Selectable=True",
846                                 "UserMouse=False",
847                                 "SupportsTransparentBackColor=False",
848                                 "StandardDoubleClick=False",
849                                 "AllPaintingInWmPaint=True",
850                                 "CacheText=False",
851                                 "EnableNotifyMessage=False",
852                                 "DoubleBuffer=False"
853                         };
854
855                         Assert.AreEqual(TextBox_want, GetStyles(new TextBox()), "TextBoxStyles");
856                 }
857
858
859                 [Test]
860                 public void DataGridTextBoxStyleTest ()
861                 {
862                         string[] DataGridTextBox_want = {
863                                 "ContainerControl=False",
864                                 "UserPaint=False",
865                                 "Opaque=False",
866                                 "ResizeRedraw=False",
867                                 "FixedWidth=False",
868                                 "FixedHeight=True",
869                                 "StandardClick=False",
870                                 "Selectable=True",
871                                 "UserMouse=False",
872                                 "SupportsTransparentBackColor=False",
873                                 "StandardDoubleClick=False",
874                                 "AllPaintingInWmPaint=True",
875                                 "CacheText=False",
876                                 "EnableNotifyMessage=False",
877                                 "DoubleBuffer=False"
878                         };
879
880                         Assert.AreEqual(DataGridTextBox_want, GetStyles(new DataGridTextBox()), "DataGridTextBoxStyles");
881                 }
882
883
884                 [Test]
885                 public void ToolBarStyleTest ()
886                 {
887                         string[] ToolBar_want = {
888                                 "ContainerControl=False",
889                                 "UserPaint=False",
890                                 "Opaque=False",
891                                 "ResizeRedraw=False",
892                                 "FixedWidth=False",
893                                 "FixedHeight=True",
894                                 "StandardClick=True",
895                                 "Selectable=True",
896                                 "UserMouse=False",
897                                 "SupportsTransparentBackColor=False",
898                                 "StandardDoubleClick=True",
899                                 "AllPaintingInWmPaint=True",
900                                 "CacheText=False",
901                                 "EnableNotifyMessage=False",
902                                 "DoubleBuffer=False"
903                         };
904
905                         Assert.AreEqual(ToolBar_want, GetStyles(new ToolBar()), "ToolBarStyles");
906                 }
907
908
909                 [Test]
910                 public void TrackBarStyleTest ()
911                 {
912                         string[] TrackBar_want = {
913                                 "ContainerControl=False",
914                                 "UserPaint=False",
915                                 "Opaque=False",
916                                 "ResizeRedraw=False",
917                                 "FixedWidth=False",
918                                 "FixedHeight=False",
919                                 "StandardClick=True",
920                                 "Selectable=True",
921                                 "UserMouse=False",
922                                 "SupportsTransparentBackColor=False",
923                                 "StandardDoubleClick=True",
924                                 "AllPaintingInWmPaint=True",
925                                 "CacheText=False",
926                                 "EnableNotifyMessage=False",
927                                 "DoubleBuffer=False"
928                         };
929
930                         Assert.AreEqual(TrackBar_want, GetStyles(new TrackBar()), "TrackBarStyles");
931                 }
932
933
934                 [Test]
935                 public void TreeViewStyleTest ()
936                 {
937                         string[] TreeView_want = {
938                                 "ContainerControl=False",
939                                 "UserPaint=False",
940                                 "Opaque=False",
941                                 "ResizeRedraw=False",
942                                 "FixedWidth=False",
943                                 "FixedHeight=False",
944                                 "StandardClick=False",
945                                 "Selectable=True",
946                                 "UserMouse=False",
947                                 "SupportsTransparentBackColor=False",
948                                 "StandardDoubleClick=True",
949                                 "AllPaintingInWmPaint=True",
950                                 "CacheText=False",
951                                 "EnableNotifyMessage=False",
952                                 "DoubleBuffer=False"
953                         };
954
955                         Assert.AreEqual(TreeView_want, GetStyles(new TreeView()), "TreeViewStyles");
956                 }
957
958
959         }
960 }
961