@@ -20,6 +20,10 @@ private RubberduckParserState Resolve(string code, vbext_ComponentType moduleTyp
2020            var  parser  =  MockParser . Create ( vbe . Object ,  new  RubberduckParserState ( ) ) ; 
2121
2222            parser . Parse ( ) ; 
23+             if  ( parser . State . Status  ==  ParserState . ResolverError ) 
24+             { 
25+                 Assert . Fail ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
26+             } 
2327            if  ( parser . State . Status  !=  ParserState . Ready ) 
2428            { 
2529                Assert . Inconclusive ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
@@ -44,6 +48,10 @@ private RubberduckParserState Resolve(params string[] classes)
4448            var  parser  =  MockParser . Create ( vbe . Object ,  new  RubberduckParserState ( ) ) ; 
4549
4650            parser . Parse ( ) ; 
51+             if  ( parser . State . Status  ==  ParserState . ResolverError ) 
52+             { 
53+                 Assert . Fail ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
54+             } 
4755            if  ( parser . State . Status  !=  ParserState . Ready ) 
4856            { 
4957                Assert . Inconclusive ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
@@ -68,6 +76,10 @@ private RubberduckParserState Resolve(params Tuple<string,vbext_ComponentType>[]
6876            var  parser  =  MockParser . Create ( vbe . Object ,  new  RubberduckParserState ( ) ) ; 
6977
7078            parser . Parse ( ) ; 
79+             if  ( parser . State . Status  ==  ParserState . ResolverError ) 
80+             { 
81+                 Assert . Fail ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
82+             } 
7183            if  ( parser . State . Status  !=  ParserState . Ready ) 
7284            { 
7385                Assert . Inconclusive ( "Parser state should be 'Ready', but returns '{0}'." ,  parser . State . Status ) ; 
0 commit comments