Skip to content

Commit 6d50282

Browse files
committed
keep hands off of MockParser...
1 parent ea2ef2a commit 6d50282

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

RubberduckTests/Mocks/MockParser.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Rubberduck.Parsing.Inspections.Abstract;
1616
using Rubberduck.Parsing.PreProcessing;
1717
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
18+
using Rubberduck.Parsing.Symbols.ParsingExceptions;
1819

1920
namespace RubberduckTests.Mocks
2021
{
@@ -30,12 +31,7 @@ public static RubberduckParserState ParseString(string inputCode, out QualifiedM
3031

3132
parser.Parse(new CancellationTokenSource());
3233
if (parser.State.Status == ParserState.Error) {
33-
SyntaxErrorException ex = null;
34-
foreach (var exception in parser.State.ModuleExceptions)
35-
{
36-
ex = exception.Item2;
37-
}
38-
Assert.Inconclusive("Parser Error: {0}", ex?.Message ?? "None?");
34+
Assert.Inconclusive("Parser Error: {0}");
3935
}
4036
return parser.State;
4137

0 commit comments

Comments
 (0)