@@ -49,7 +49,7 @@ End Sub
4949 parser . Parse ( new CancellationTokenSource ( ) ) ;
5050 if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
5151
52- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
52+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
5353 var inspectionResults = inspection . GetInspectionResults ( ) ;
5454
5555 Assert . AreEqual ( 1 , inspectionResults . Count ( ) ) ;
@@ -86,10 +86,10 @@ End Sub
8686 parser . Parse ( new CancellationTokenSource ( ) ) ;
8787 if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
8888
89- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
89+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
9090 var inspectionResults = inspection . GetInspectionResults ( ) ;
9191
92- Assert . AreEqual ( 1 , inspectionResults . Count ( ) ) ;
92+ Assert . AreEqual ( 0 , inspectionResults . Count ( ) ) ;
9393 }
9494
9595 [ TestMethod ]
@@ -127,7 +127,7 @@ Dim arr1() As Variant
127127 parser . Parse ( new CancellationTokenSource ( ) ) ;
128128 if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
129129
130- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , parser . State ) ;
130+ var inspection = new ImplicitActiveSheetReferenceInspection ( parser . State ) ;
131131 var inspectionResults = inspection . GetInspectionResults ( ) ;
132132
133133 inspectionResults . First ( ) . QuickFixes . Single ( s => s is IgnoreOnceQuickFix ) . Fix ( ) ;
@@ -146,7 +146,7 @@ public void InspectionType()
146146 . Build ( ) ;
147147 var vbe = builder . AddProject ( project ) . Build ( ) ;
148148
149- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , null ) ;
149+ var inspection = new ImplicitActiveSheetReferenceInspection ( null ) ;
150150 Assert . AreEqual ( CodeInspectionType . MaintainabilityAndReadabilityIssues , inspection . InspectionType ) ;
151151 }
152152
@@ -162,7 +162,7 @@ public void InspectionName()
162162 var vbe = builder . AddProject ( project ) . Build ( ) ;
163163
164164 const string inspectionName = "ImplicitActiveSheetReferenceInspection" ;
165- var inspection = new ImplicitActiveSheetReferenceInspection ( vbe . Object , null ) ;
165+ var inspection = new ImplicitActiveSheetReferenceInspection ( null ) ;
166166
167167 Assert . AreEqual ( inspectionName , inspection . Name ) ;
168168 }
0 commit comments