@@ -155,19 +155,6 @@ Private Sub TestSub(ByRef testParam As Variant)
155
155
AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount , "VBA.4.2.xml" ) ;
156
156
}
157
157
158
- [ Test ]
159
- [ Category ( "Inspections" ) ]
160
- public void ObjectVariableNotSet_GivenVariantVariableAssignedRange_ReturnsResult ( )
161
- {
162
- var expectResultCount = 1 ;
163
- var input =
164
- @"
165
- Private Sub TestSub(ByRef testParam As Variant)
166
- testParam = Range(""A1:C1"")
167
- End Sub" ;
168
- AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount , "Excel.1.8.xml" ) ;
169
- }
170
-
171
158
[ Test ]
172
159
[ Category ( "Inspections" ) ]
173
160
public void ObjectVariableNotSet_GivenVariantVariableAssignedDeclaredRange_ReturnsResult ( )
@@ -498,7 +485,7 @@ Dim bar As Collection
498
485
bar.Add ""x"", ""x""
499
486
foo = ""Test"" & bar.Item(""x"")
500
487
End Sub" ;
501
- AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount , new [ ] { "VBA.4.2" } ) ;
488
+ AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount , "VBA.4.2" ) ;
502
489
}
503
490
504
491
[ Test ]
@@ -517,7 +504,7 @@ Dim bar As Long
517
504
bar = 42
518
505
foo = bar
519
506
End Sub" ;
520
- AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount , new [ ] { "VBA.4.2" } ) ;
507
+ AssertInputCodeYieldsExpectedInspectionResultCount ( input , expectResultCount ) ;
521
508
}
522
509
523
510
[ Test ]
0 commit comments