@@ -15,12 +15,10 @@ public async Task SameHeightWithDefaultStyle()
15
15
var stackPanel = await LoadXaml < StackPanel > ( @"
16
16
<StackPanel>
17
17
<PasswordBox />
18
- <ComboBox IsEditable=""True"" />
19
18
<DatePicker />
20
19
</StackPanel>" ) ;
21
20
22
21
var height = await GetHeight ( stackPanel , "PasswordBox" ) ;
23
- Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
24
22
Assert . Equal ( height , await GetHeight ( stackPanel , "DatePicker" ) , Precision ) ;
25
23
26
24
recorder . Success ( ) ;
@@ -35,11 +33,12 @@ public async Task SameHeightWithDefaultStyle_PostSmartHintRefactor()
35
33
var stackPanel = await LoadXaml < StackPanel > ( @"
36
34
<StackPanel>
37
35
<TextBox />
36
+ <ComboBox IsEditable=""True"" />
38
37
<materialDesign:TimePicker />
39
38
</StackPanel>" ) ;
40
39
41
40
var height = await GetHeight ( stackPanel , "TextBox" ) ;
42
- // Assert.Equal(height, await GetHeight(stackPanel, "ComboBox"), Precision);
41
+ Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
43
42
Assert . Equal ( height , await GetHeight ( stackPanel , "TimePicker" ) , Precision ) ;
44
43
45
44
recorder . Success ( ) ;
@@ -54,13 +53,11 @@ public async Task SameHeightWithFloatingHintStyle()
54
53
var stackPanel = await LoadXaml < StackPanel > ( @"
55
54
<StackPanel>
56
55
<PasswordBox Style=""{StaticResource MaterialDesignFloatingHintPasswordBox}"" materialDesign:HintAssist.Hint=""Hint"" />
57
- <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignFloatingHintComboBox}"" materialDesign:HintAssist.Hint=""Hint"" />
58
56
<DatePicker Style=""{StaticResource MaterialDesignFloatingHintDatePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
59
57
</StackPanel>" ) ;
60
58
61
59
var height = await GetHeight ( stackPanel , "PasswordBox" ) ;
62
60
Assert . True ( height > 0 ) ;
63
- Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
64
61
Assert . Equal ( height , await GetHeight ( stackPanel , "DatePicker" ) , Precision ) ;
65
62
66
63
recorder . Success ( ) ;
@@ -75,12 +72,13 @@ public async Task SameHeightWithFloatingHintStyle_PostSmartHintRefactor()
75
72
var stackPanel = await LoadXaml < StackPanel > ( @"
76
73
<StackPanel>
77
74
<TextBox Style=""{StaticResource MaterialDesignFloatingHintTextBox}"" materialDesign:HintAssist.Hint=""Hint"" />
75
+ <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignFloatingHintComboBox}"" materialDesign:HintAssist.Hint=""Hint"" />
78
76
<materialDesign:TimePicker Style=""{StaticResource MaterialDesignFloatingHintTimePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
79
77
</StackPanel>" ) ;
80
78
81
79
var height = await GetHeight ( stackPanel , "TextBox" ) ;
82
80
Assert . True ( height > 0 ) ;
83
- // Assert.Equal(height, await GetHeight(stackPanel, "ComboBox"), Precision);
81
+ Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
84
82
Assert . Equal ( height , await GetHeight ( stackPanel , "TimePicker" ) , Precision ) ;
85
83
86
84
recorder . Success ( ) ;
@@ -95,13 +93,11 @@ public async Task SameHeightWithFilledStyle()
95
93
var stackPanel = await LoadXaml < StackPanel > ( @"
96
94
<StackPanel>
97
95
<PasswordBox Style=""{StaticResource MaterialDesignFilledPasswordBox}"" materialDesign:HintAssist.Hint=""Hint"" />
98
- <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignFilledComboBox}"" materialDesign:HintAssist.Hint=""Hint"" />
99
96
<DatePicker Style=""{StaticResource MaterialDesignFilledDatePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
100
97
</StackPanel>" ) ;
101
98
102
99
var height = await GetHeight ( stackPanel , "PasswordBox" ) ;
103
100
Assert . True ( height > 0 ) ;
104
- Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
105
101
Assert . Equal ( height , await GetHeight ( stackPanel , "DatePicker" ) , Precision ) ;
106
102
107
103
recorder . Success ( ) ;
@@ -116,12 +112,13 @@ public async Task SameHeightWithFilledStyle_PostSmartHintRefactor()
116
112
var stackPanel = await LoadXaml < StackPanel > ( @"
117
113
<StackPanel>
118
114
<TextBox Style=""{StaticResource MaterialDesignFilledTextBox}"" materialDesign:HintAssist.Hint=""Hint"" />
115
+ <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignFilledComboBox}"" materialDesign:HintAssist.Hint=""Hint"" />
119
116
<materialDesign:TimePicker Style=""{StaticResource MaterialDesignFilledTimePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
120
117
</StackPanel>" ) ;
121
118
122
119
var height = await GetHeight ( stackPanel , "TextBox" ) ;
123
120
Assert . True ( height > 0 ) ;
124
- // Assert.Equal(height, await GetHeight(stackPanel, "ComboBox"), Precision);
121
+ Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
125
122
Assert . Equal ( height , await GetHeight ( stackPanel , "TimePicker" ) , Precision ) ;
126
123
127
124
recorder . Success ( ) ;
@@ -136,13 +133,11 @@ public async Task SameHeightWithOutlinedStyle()
136
133
var stackPanel = await LoadXaml < StackPanel > ( @"
137
134
<StackPanel>
138
135
<PasswordBox Style=""{StaticResource MaterialDesignOutlinedPasswordBox}"" materialDesign:HintAssist.Hint=""Hint"" />
139
- <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignOutlinedComboBox}"" />
140
136
<DatePicker Style=""{StaticResource MaterialDesignOutlinedDatePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
141
137
</StackPanel>" ) ;
142
138
143
139
var height = await GetHeight ( stackPanel , "PasswordBox" ) ;
144
140
Assert . True ( height > 0 ) ;
145
- Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
146
141
Assert . Equal ( height , await GetHeight ( stackPanel , "DatePicker" ) , Precision ) ;
147
142
148
143
recorder . Success ( ) ;
@@ -157,12 +152,13 @@ public async Task SameHeightWithOutlinedStyle_PostSmartHintRefactor()
157
152
var stackPanel = await LoadXaml < StackPanel > ( @"
158
153
<StackPanel>
159
154
<TextBox Style=""{StaticResource MaterialDesignOutlinedTextBox}"" materialDesign:HintAssist.Hint=""Hint"" />
155
+ <ComboBox IsEditable=""True"" Style=""{StaticResource MaterialDesignOutlinedComboBox}"" />
160
156
<materialDesign:TimePicker Style=""{StaticResource MaterialDesignOutlinedTimePicker}"" materialDesign:HintAssist.Hint=""Hint"" />
161
157
</StackPanel>" ) ;
162
158
163
159
var height = await GetHeight ( stackPanel , "TextBox" ) ;
164
160
Assert . True ( height > 0 ) ;
165
- // Assert.Equal(height, await GetHeight(stackPanel, "ComboBox"), Precision);
161
+ Assert . Equal ( height , await GetHeight ( stackPanel , "ComboBox" ) , Precision ) ;
166
162
Assert . Equal ( height , await GetHeight ( stackPanel , "TimePicker" ) , Precision ) ;
167
163
168
164
recorder . Success ( ) ;
0 commit comments