@@ -178,7 +178,7 @@ public void IsClearable_Ok()
178178 }
179179
180180 [ Fact ]
181- public void IsNullable_NotNullableString_Ok ( )
181+ public void IsNullable_Ok ( )
182182 {
183183 var cut = Context . RenderComponent < Select < string > > ( pb =>
184184 {
@@ -190,12 +190,8 @@ public void IsNullable_NotNullableString_Ok()
190190 } ) ;
191191 } ) ;
192192 Assert . True ( IsNullable ( cut . Instance ) ) ;
193- }
194193
195- [ Fact ]
196- public void IsNullable_NullableString_Ok ( )
197- {
198- var cut = Context . RenderComponent < Select < string ? > > ( pb =>
194+ var cut1 = Context . RenderComponent < Select < string ? > > ( pb =>
199195 {
200196 pb . Add ( a => a . Items , new List < SelectedItem > ( )
201197 {
@@ -204,13 +200,9 @@ public void IsNullable_NullableString_Ok()
204200 new ( "3" , "Test3" )
205201 } ) ;
206202 } ) ;
207- Assert . True ( IsNullable ( cut . Instance ) ) ;
208- }
203+ Assert . True ( IsNullable ( cut1 . Instance ) ) ;
209204
210- [ Fact ]
211- public void IsNullable_NotNullableFoo_Ok ( )
212- {
213- var cut = Context . RenderComponent < Select < Foo > > ( pb =>
205+ var cut2 = Context . RenderComponent < Select < Foo > > ( pb =>
214206 {
215207 pb . Add ( a => a . Items , new List < SelectedItem > ( )
216208 {
@@ -219,13 +211,9 @@ public void IsNullable_NotNullableFoo_Ok()
219211 new ( "3" , "Test3" )
220212 } ) ;
221213 } ) ;
222- Assert . False ( IsNullable ( cut . Instance ) ) ;
223- }
214+ Assert . True ( IsNullable ( cut2 . Instance ) ) ;
224215
225- [ Fact ]
226- public void IsNullable_NullableFoo_Ok ( )
227- {
228- var cut = Context . RenderComponent < Select < Foo ? > > ( pb =>
216+ var cut3 = Context . RenderComponent < Select < Foo ? > > ( pb =>
229217 {
230218 pb . Add ( a => a . Items , new List < SelectedItem > ( )
231219 {
@@ -234,13 +222,9 @@ public void IsNullable_NullableFoo_Ok()
234222 new ( "3" , "Test3" )
235223 } ) ;
236224 } ) ;
237- Assert . True ( IsNullable ( cut . Instance ) ) ;
238- }
225+ Assert . True ( IsNullable ( cut3 . Instance ) ) ;
239226
240- [ Fact ]
241- public void IsNullable_NotNullableInt_Ok ( )
242- {
243- var cut = Context . RenderComponent < Select < int > > ( pb =>
227+ var cut4 = Context . RenderComponent < Select < int > > ( pb =>
244228 {
245229 pb . Add ( a => a . Items , new List < SelectedItem > ( )
246230 {
@@ -249,13 +233,9 @@ public void IsNullable_NotNullableInt_Ok()
249233 new ( "3" , "Test3" )
250234 } ) ;
251235 } ) ;
252- Assert . False ( IsNullable ( cut . Instance ) ) ;
253- }
236+ Assert . False ( IsNullable ( cut4 . Instance ) ) ;
254237
255- [ Fact ]
256- public void IsNullable_NullableInt_Ok ( )
257- {
258- var cut = Context . RenderComponent < Select < int ? > > ( pb =>
238+ var cut5 = Context . RenderComponent < Select < int ? > > ( pb =>
259239 {
260240 pb . Add ( a => a . Items , new List < SelectedItem > ( )
261241 {
@@ -264,7 +244,7 @@ public void IsNullable_NullableInt_Ok()
264244 new ( "3" , "Test3" )
265245 } ) ;
266246 } ) ;
267- Assert . True ( IsNullable ( cut . Instance ) ) ;
247+ Assert . True ( IsNullable ( cut5 . Instance ) ) ;
268248 }
269249
270250 private static bool IsNullable ( object select )
0 commit comments