diff --git a/src/Verify.ExceptionParsing/Parser.cs b/src/Verify.ExceptionParsing/Parser.cs index 818365aca4..7d8f838a96 100644 --- a/src/Verify.ExceptionParsing/Parser.cs +++ b/src/Verify.ExceptionParsing/Parser.cs @@ -129,12 +129,12 @@ static string TrimStart(string next, string prefix) var trimmed = next.Substring(prefix.Length); - if (string.IsNullOrWhiteSpace(trimmed)) + if (!string.IsNullOrWhiteSpace(trimmed)) { - throw new ParseException($"Expected line to have content after prefix `{prefix}` is trimmed . Line: {next}"); + return trimmed; } - return trimmed; + throw new ParseException($"Expected line to have content after prefix `{prefix}` is trimmed . Line: {next}"); } static void AddFilePair(string directory, string line, IEnumerator scopedEnumerator, List filePairs) diff --git a/src/Verify.Expecto/Verify.Expecto.csproj b/src/Verify.Expecto/Verify.Expecto.csproj index 1355c23273..19a8d13795 100644 --- a/src/Verify.Expecto/Verify.Expecto.csproj +++ b/src/Verify.Expecto/Verify.Expecto.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Verify.MSTest/Verify.MSTest.csproj b/src/Verify.MSTest/Verify.MSTest.csproj index a67125c0d0..f328e5abc9 100644 --- a/src/Verify.MSTest/Verify.MSTest.csproj +++ b/src/Verify.MSTest/Verify.MSTest.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Verify.NUnit/Verify.NUnit.csproj b/src/Verify.NUnit/Verify.NUnit.csproj index 5b96038958..99cc665ee4 100644 --- a/src/Verify.NUnit/Verify.NUnit.csproj +++ b/src/Verify.NUnit/Verify.NUnit.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Verify.Xunit/Verify.Xunit.csproj b/src/Verify.Xunit/Verify.Xunit.csproj index a5dfe81e1d..edec709857 100644 --- a/src/Verify.Xunit/Verify.Xunit.csproj +++ b/src/Verify.Xunit/Verify.Xunit.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Verify/Verify.csproj b/src/Verify/Verify.csproj index 526dfd8f6a..4feaecf93a 100644 --- a/src/Verify/Verify.csproj +++ b/src/Verify/Verify.csproj @@ -22,7 +22,8 @@ - + +