Skip to content

Commit 60fe619

Browse files
committed
Pass state to inspection instead of null in tests.
1 parent 9ea89cc commit 60fe619

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RubberduckTests/Inspections/EmptyStringLiteralInspectionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Public Sub Foo(ByRef arg1 As String)
4444
parser.Parse(new CancellationTokenSource());
4545
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
4646

47-
var inspection = new EmptyStringLiteralInspection(null);
47+
var inspection = new EmptyStringLiteralInspection(parser.State);
4848
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
4949

5050
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -76,7 +76,7 @@ public void EmptyStringLiteral_ReturnsResult_Assignment()
7676
parser.Parse(new CancellationTokenSource());
7777
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
7878

79-
var inspection = new EmptyStringLiteralInspection(null);
79+
var inspection = new EmptyStringLiteralInspection(parser.State);
8080
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
8181

8282
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -108,7 +108,7 @@ public void NotEmptyStringLiteral_DoesNotReturnResult()
108108
parser.Parse(new CancellationTokenSource());
109109
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
110110

111-
var inspection = new EmptyStringLiteralInspection(null);
111+
var inspection = new EmptyStringLiteralInspection(parser.State);
112112
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
113113

114114
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;
@@ -147,7 +147,7 @@ public void EmptyStringLiteral_QuickFixWorks()
147147
parser.Parse(new CancellationTokenSource());
148148
if (parser.State.Status >= ParserState.Error) { Assert.Inconclusive("Parser Error"); }
149149

150-
var inspection = new EmptyStringLiteralInspection(null);
150+
var inspection = new EmptyStringLiteralInspection(parser.State);
151151
var inspector = new Inspector(settings.Object, new IInspection[] { inspection });
152152

153153
var inspectionResults = inspector.FindIssuesAsync(parser.State, CancellationToken.None).Result;

0 commit comments

Comments
 (0)