@@ -19,17 +19,15 @@ public ListBoxSelectedObjectCollectionTests()
19
19
}
20
20
21
21
public void Dispose ( )
22
- {
23
- _owner . Dispose ( ) ;
24
- }
22
+ => _owner . Dispose ( ) ;
25
23
26
24
[ Fact ]
27
- public void ListBoxSelectedObjectCollection_Ctor_ListBox ( ) =>
28
- Assert . True ( _collection . IsReadOnly ) ;
25
+ public void ListBoxSelectedObjectCollection_Ctor_ListBox ( )
26
+ => Assert . True ( _collection . IsReadOnly ) ;
29
27
30
28
[ Fact ]
31
- public void ListBoxSelectedObjectCollection_Ctor_NullOwner_ThrowsArgumentNullException ( ) =>
32
- Assert . Throws < ArgumentNullException > ( "owner" , ( ) => new ListBox . SelectedObjectCollection ( null ! ) ) ;
29
+ public void ListBoxSelectedObjectCollection_Ctor_NullOwner_ThrowsArgumentNullException ( )
30
+ => Assert . Throws < ArgumentNullException > ( "owner" , ( ) => new ListBox . SelectedObjectCollection ( null ! ) ) ;
33
31
34
32
[ Fact ]
35
33
public void ListBoxSelectedObjectCollection_ICollection_Properties_GetReturnsExpected ( )
@@ -57,19 +55,19 @@ public void ListBoxSelectedObjectCollection_IList_Properties_GetReturnsExpected(
57
55
[ InlineData ( - 1 , "1" ) ]
58
56
[ InlineData ( 0 , "1" ) ]
59
57
[ InlineData ( 1 , "1" ) ]
60
- public void ListBoxSelectedObjectCollection_IListItem_Set_ThrowsNotSupportedException ( int index , object value ) =>
61
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) [ index ] = value ) ;
58
+ public void ListBoxSelectedObjectCollection_IListItem_Set_ThrowsNotSupportedException ( int index , object value )
59
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) [ index ] = value ) ;
62
60
63
61
[ Theory ]
64
62
[ InlineData ( 0 ) ]
65
63
[ InlineData ( 1 ) ]
66
64
[ InlineData ( "1" ) ]
67
- public void ListBoxSelectedObjectCollection_IListAdd_Invoke_ThrowsNotSupportedException ( object value ) =>
68
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Add ( value ) ) ;
65
+ public void ListBoxSelectedObjectCollection_IListAdd_Invoke_ThrowsNotSupportedException ( object value )
66
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Add ( value ) ) ;
69
67
70
68
[ Fact ]
71
- public void ListBoxSelectedObjectCollection_IListClear_Invoke_ThrowsNotSupportedException ( ) =>
72
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Clear ( ) ) ;
69
+ public void ListBoxSelectedObjectCollection_IListClear_Invoke_ThrowsNotSupportedException ( )
70
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Clear ( ) ) ;
73
71
74
72
[ Theory ]
75
73
[ InlineData ( - 1 , 0 ) ]
@@ -81,22 +79,22 @@ public void ListBoxSelectedObjectCollection_IListClear_Invoke_ThrowsNotSupported
81
79
[ InlineData ( - 1 , "1" ) ]
82
80
[ InlineData ( 0 , "1" ) ]
83
81
[ InlineData ( 1 , "1" ) ]
84
- public void ListBoxSelectedObjectCollection_IListInsert_Invoke_ThrowsNotSupportedException ( int index , object value ) =>
85
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Insert ( index , value ) ) ;
82
+ public void ListBoxSelectedObjectCollection_IListInsert_Invoke_ThrowsNotSupportedException ( int index , object value )
83
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Insert ( index , value ) ) ;
86
84
87
85
[ Theory ]
88
86
[ InlineData ( 0 ) ]
89
87
[ InlineData ( 1 ) ]
90
88
[ InlineData ( "1" ) ]
91
- public void ListBoxSelectedObjectCollection_IListRemove_Invoke_ThrowsNotSupportedException ( object value ) =>
92
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Remove ( value ) ) ;
89
+ public void ListBoxSelectedObjectCollection_IListRemove_Invoke_ThrowsNotSupportedException ( object value )
90
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . Remove ( value ) ) ;
93
91
94
92
[ Theory ]
95
93
[ InlineData ( - 1 ) ]
96
94
[ InlineData ( 0 ) ]
97
95
[ InlineData ( 1 ) ]
98
- public void ListBoxSelectedObjectCollection_IListRemoveAt_Invoke_ThrowsNotSupportedException ( int index ) =>
99
- Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . RemoveAt ( index ) ) ;
96
+ public void ListBoxSelectedObjectCollection_IListRemoveAt_Invoke_ThrowsNotSupportedException ( int index )
97
+ => Assert . Throws < NotSupportedException > ( ( ) => ( ( IList ) _collection ) . RemoveAt ( index ) ) ;
100
98
101
99
[ Theory ]
102
100
[ InlineData ( 0 , false ) ]
0 commit comments