1- using System . Reflection ;
2- using MaterialDesignColors ;
1+ using MaterialDesignColors ;
32
43namespace MaterialDesignThemes . UITests ;
54
65public class AllStyles : TestBase
76{
8- public AllStyles ( ITestOutputHelper output )
9- : base ( output )
10- { }
11-
12- [ Theory ]
13- [ InlineData ( "Button" , "MaterialDesignRaisedButton" ) ]
14- [ InlineData ( "Calendar" , "MaterialDesignCalendarPortrait" ) ]
15- [ InlineData ( "CheckBox" , "MaterialDesignCheckBox" ) ]
16- [ InlineData ( "ComboBox" , "MaterialDesignComboBox" ) ]
17- [ InlineData ( "DataGrid" , "MaterialDesignDataGrid" ) ]
18- [ InlineData ( "DatePicker" , "MaterialDesignDatePicker" ) ]
19- [ InlineData ( "Expander" , "MaterialDesignExpander" ) ]
20- [ InlineData ( "GridSplitter" , "MaterialDesignGridSplitter" ) ]
21- [ InlineData ( "GroupBox" , "MaterialDesignGroupBox" ) ]
22- [ InlineData ( "Label" , "MaterialDesignLabel" ) ]
23- [ InlineData ( "ListBox" , "MaterialDesignListBox" ) ]
24- [ InlineData ( "ListView" , "MaterialDesignListView" ) ]
25- [ InlineData ( "Menu" , "MaterialDesignMenu" ) ]
26- [ InlineData ( "PasswordBox" , "MaterialDesignPasswordBox" ) ]
27- [ InlineData ( "ProgressBar" , "MaterialDesignLinearProgressBar" ) ]
28- [ InlineData ( "RadioButton" , "MaterialDesignRadioButton" ) ]
29- [ InlineData ( "RichTextBox" , "MaterialDesignRichTextBox" ) ]
30- [ InlineData ( "ScrollBar" , "MaterialDesignScrollBar" ) ]
31- [ InlineData ( "ScrollViewer" , "MaterialDesignScrollViewer" ) ]
32- [ InlineData ( "Slider" , "MaterialDesignSlider" ) ]
33- [ InlineData ( "TabControl" , "MaterialDesignTabControl" ) ]
34- [ InlineData ( "TextBox" , "MaterialDesignTextBox" ) ]
35- [ InlineData ( "ToggleButton" , "MaterialDesignSwitchToggleButton" ) ]
36- [ InlineData ( "ToolBar" , "MaterialDesignToolBar" ) ]
37- [ InlineData ( "TreeView" , "MaterialDesignTreeView" ) ]
7+ [ Test ]
8+ [ Arguments ( "Button" , "MaterialDesignRaisedButton" ) ]
9+ [ Arguments ( "Calendar" , "MaterialDesignCalendarPortrait" ) ]
10+ [ Arguments ( "CheckBox" , "MaterialDesignCheckBox" ) ]
11+ [ Arguments ( "ComboBox" , "MaterialDesignComboBox" ) ]
12+ [ Arguments ( "DataGrid" , "MaterialDesignDataGrid" ) ]
13+ [ Arguments ( "DatePicker" , "MaterialDesignDatePicker" ) ]
14+ [ Arguments ( "Expander" , "MaterialDesignExpander" ) ]
15+ [ Arguments ( "GridSplitter" , "MaterialDesignGridSplitter" ) ]
16+ [ Arguments ( "GroupBox" , "MaterialDesignGroupBox" ) ]
17+ [ Arguments ( "Label" , "MaterialDesignLabel" ) ]
18+ [ Arguments ( "ListBox" , "MaterialDesignListBox" ) ]
19+ [ Arguments ( "ListView" , "MaterialDesignListView" ) ]
20+ [ Arguments ( "Menu" , "MaterialDesignMenu" ) ]
21+ [ Arguments ( "PasswordBox" , "MaterialDesignPasswordBox" ) ]
22+ [ Arguments ( "ProgressBar" , "MaterialDesignLinearProgressBar" ) ]
23+ [ Arguments ( "RadioButton" , "MaterialDesignRadioButton" ) ]
24+ [ Arguments ( "RichTextBox" , "MaterialDesignRichTextBox" ) ]
25+ [ Arguments ( "ScrollBar" , "MaterialDesignScrollBar" ) ]
26+ [ Arguments ( "ScrollViewer" , "MaterialDesignScrollViewer" ) ]
27+ [ Arguments ( "Slider" , "MaterialDesignSlider" ) ]
28+ [ Arguments ( "TabControl" , "MaterialDesignTabControl" ) ]
29+ [ Arguments ( "TextBox" , "MaterialDesignTextBox" ) ]
30+ [ Arguments ( "ToggleButton" , "MaterialDesignSwitchToggleButton" ) ]
31+ [ Arguments ( "ToolBar" , "MaterialDesignToolBar" ) ]
32+ [ Arguments ( "TreeView" , "MaterialDesignTreeView" ) ]
3833 public async Task LoadStyleInIsolation_CanBeLoaded ( string controlName , string styleName )
3934 {
4035 await using var recorder = new TestRecorder ( App ) ;
@@ -57,7 +52,7 @@ public async Task LoadStyleInIsolation_CanBeLoaded(string controlName, string st
5752 await App . Initialize ( applicationResourceXaml ,
5853 Path . GetFullPath ( "MaterialDesignColors.dll" ) ,
5954 Path . GetFullPath ( "MaterialDesignThemes.Wpf.dll" ) ,
60- Assembly . GetExecutingAssembly ( ) . Location ) ;
55+ System . Reflection . Assembly . GetExecutingAssembly ( ) . Location ) ;
6156
6257 IWindow window = await App . CreateWindow ( $$ """
6358 <Window
@@ -82,7 +77,7 @@ await App.Initialize(applicationResourceXaml,
8277 </Window>
8378 """ ) ;
8479
85- Assert . True ( await window . GetIsVisible ( ) ) ;
80+ await Assert . That ( await window . GetIsVisible ( ) ) . IsTrue ( ) ;
8681
8782 recorder . Success ( ) ;
8883 }
0 commit comments