Skip to content

Commit

Permalink
Update StackTraceParserTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 11, 2024
1 parent 4899272 commit cde06f2
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ public void Parse_UsingStaticInitialize_DontThrowInvalidOperationException()
}
catch (InvalidOperationException e)
{
Assert.Fail(
"InvalidOperationException when trying to parse stacktrace. " +
"This is caused by the parser collection not being thread-safe. " +
"Original exception message : {0} and stacktrace : {1}",
e.Message,
e.StackTrace
);
Assert.Fail($"InvalidOperationException when trying to parse stacktrace. This is caused by the parser collection not being thread-safe. Original exception message : {e.Message} and stacktrace : {e.StackTrace}");
}
// Because the current stacktrace passed to the parse method doesn't contains any trace of a compliant stacktrace parser
// it's normal that we receive an exception here so let's ignore it.
Expand Down

0 comments on commit cde06f2

Please sign in to comment.