@@ -49,7 +49,7 @@ End Sub
49
49
parser . Parse ( new CancellationTokenSource ( ) ) ;
50
50
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
51
51
52
- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
52
+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
53
53
var inspectionResults = inspection . GetInspectionResults ( ) ;
54
54
55
55
Assert . AreEqual ( 1 , inspectionResults . Count ( ) ) ;
@@ -86,10 +86,10 @@ End Sub
86
86
parser . Parse ( new CancellationTokenSource ( ) ) ;
87
87
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
88
88
89
- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
89
+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
90
90
var inspectionResults = inspection . GetInspectionResults ( ) ;
91
91
92
- Assert . AreEqual ( 1 , inspectionResults . Count ( ) ) ;
92
+ Assert . AreEqual ( 0 , inspectionResults . Count ( ) ) ;
93
93
}
94
94
95
95
[ TestMethod ]
@@ -127,7 +127,7 @@ Dim arr1() As Variant
127
127
parser . Parse ( new CancellationTokenSource ( ) ) ;
128
128
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
129
129
130
- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
130
+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
131
131
var inspectionResults = inspection . GetInspectionResults ( ) ;
132
132
133
133
inspectionResults . First ( ) . QuickFixes . Single ( s => s is IgnoreOnceQuickFix ) . Fix ( ) ;
@@ -146,7 +146,7 @@ public void InspectionType()
146
146
. Build ( ) ;
147
147
var vbe = builder . AddProject ( project ) . Build ( ) ;
148
148
149
- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , null ) ;
149
+ var inspection = new ImplicitActiveSheetReferenceInspection ( null ) ;
150
150
Assert . AreEqual ( CodeInspectionType . MaintainabilityAndReadabilityIssues , inspection . InspectionType ) ;
151
151
}
152
152
@@ -162,7 +162,7 @@ public void InspectionName()
162
162
var vbe = builder . AddProject ( project ) . Build ( ) ;
163
163
164
164
const string inspectionName = "ImplicitActiveSheetReferenceInspection" ;
165
- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , null ) ;
165
+ var inspection = new ImplicitActiveSheetReferenceInspection ( null ) ;
166
166
167
167
Assert . AreEqual ( inspectionName , inspection . Name ) ;
168
168
}
0 commit comments