@@ -50,7 +50,7 @@ public void NonReturningPropertyGet_ReturnsResult()
50
50
var vbe = builder . BuildFromSingleStandardModule ( inputCode , out component ) ;
51
51
var mockHost = new Mock < IHostApplication > ( ) ;
52
52
mockHost . SetupAllProperties ( ) ;
53
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
53
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
54
54
55
55
parser . Parse ( ) ;
56
56
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -226,7 +226,7 @@ public void NonReturningFunction_QuickFixWorks_FunctionHasTypeHint()
226
226
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
227
227
var mockHost = new Mock < IHostApplication > ( ) ;
228
228
mockHost . SetupAllProperties ( ) ;
229
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
229
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
230
230
231
231
parser . Parse ( ) ;
232
232
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -258,7 +258,7 @@ public void NonReturningFunction_QuickFixWorks_FunctionReturnsImplicitVariant()
258
258
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
259
259
var mockHost = new Mock < IHostApplication > ( ) ;
260
260
mockHost . SetupAllProperties ( ) ;
261
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
261
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
262
262
263
263
parser . Parse ( ) ;
264
264
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -290,7 +290,7 @@ public void NonReturningFunction_QuickFixWorks_FunctionHasVariable()
290
290
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
291
291
var mockHost = new Mock < IHostApplication > ( ) ;
292
292
mockHost . SetupAllProperties ( ) ;
293
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
293
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
294
294
295
295
parser . Parse ( ) ;
296
296
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -322,7 +322,7 @@ public void NonReturningFunction_QuickFixWorks_PropertyGet()
322
322
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
323
323
var mockHost = new Mock < IHostApplication > ( ) ;
324
324
mockHost . SetupAllProperties ( ) ;
325
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
325
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
326
326
327
327
parser . Parse ( ) ;
328
328
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -354,7 +354,7 @@ public void NonReturningFunction_QuickFixWorks_PropertyGetHasTypeHint()
354
354
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
355
355
var mockHost = new Mock < IHostApplication > ( ) ;
356
356
mockHost . SetupAllProperties ( ) ;
357
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
357
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
358
358
359
359
parser . Parse ( ) ;
360
360
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -386,7 +386,7 @@ public void NonReturningFunction_QuickFixWorks_PropertyGetReturnsImplicitVariant
386
386
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
387
387
var mockHost = new Mock < IHostApplication > ( ) ;
388
388
mockHost . SetupAllProperties ( ) ;
389
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
389
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
390
390
391
391
parser . Parse ( ) ;
392
392
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
@@ -418,7 +418,7 @@ public void NonReturningFunction_QuickFixWorks_PropertyGetHasVariable()
418
418
var module = project . VBComponents . Item ( 0 ) . CodeModule ;
419
419
var mockHost = new Mock < IHostApplication > ( ) ;
420
420
mockHost . SetupAllProperties ( ) ;
421
- var parser = new RubberduckParser ( vbe . Object , new RubberduckParserState ( ) ) ;
421
+ var parser = MockParser . Create ( vbe . Object , new RubberduckParserState ( ) ) ;
422
422
423
423
parser . Parse ( ) ;
424
424
if ( parser . State . Status == ParserState . Error ) { Assert . Inconclusive ( "Parser Error" ) ; }
0 commit comments