@@ -44,7 +44,7 @@ Public Sub Foo(ByRef arg1 As String)
44
44
parser . Parse ( new CancellationTokenSource ( ) ) ;
45
45
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
46
46
47
- var inspection = new EmptyStringLiteralInspection ( null ) ;
47
+ var inspection = new EmptyStringLiteralInspection ( parser . State ) ;
48
48
var inspector = new Inspector ( settings . Object , new IInspection [ ] { inspection } ) ;
49
49
50
50
var inspectionResults = inspector . FindIssuesAsync ( parser . State , CancellationToken . None ) . Result ;
@@ -76,7 +76,7 @@ public void EmptyStringLiteral_ReturnsResult_Assignment()
76
76
parser . Parse ( new CancellationTokenSource ( ) ) ;
77
77
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
78
78
79
- var inspection = new EmptyStringLiteralInspection ( null ) ;
79
+ var inspection = new EmptyStringLiteralInspection ( parser . State ) ;
80
80
var inspector = new Inspector ( settings . Object , new IInspection [ ] { inspection } ) ;
81
81
82
82
var inspectionResults = inspector . FindIssuesAsync ( parser . State , CancellationToken . None ) . Result ;
@@ -108,7 +108,7 @@ public void NotEmptyStringLiteral_DoesNotReturnResult()
108
108
parser . Parse ( new CancellationTokenSource ( ) ) ;
109
109
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
110
110
111
- var inspection = new EmptyStringLiteralInspection ( null ) ;
111
+ var inspection = new EmptyStringLiteralInspection ( parser . State ) ;
112
112
var inspector = new Inspector ( settings . Object , new IInspection [ ] { inspection } ) ;
113
113
114
114
var inspectionResults = inspector . FindIssuesAsync ( parser . State , CancellationToken . None ) . Result ;
@@ -147,7 +147,7 @@ public void EmptyStringLiteral_QuickFixWorks()
147
147
parser . Parse ( new CancellationTokenSource ( ) ) ;
148
148
if ( parser . State . Status >= ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
149
149
150
- var inspection = new EmptyStringLiteralInspection ( null ) ;
150
+ var inspection = new EmptyStringLiteralInspection ( parser . State ) ;
151
151
var inspector = new Inspector ( settings . Object , new IInspection [ ] { inspection } ) ;
152
152
153
153
var inspectionResults = inspector . FindIssuesAsync ( parser . State , CancellationToken . None ) . Result ;
0 commit comments