Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 11, 2024
1 parent 704bc40 commit 27a6ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ApprovalTests.NUnit3/NUnitReporterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public void TestReporter()
Approvals.Verify("Hello");
}
}
catch (Exception e)
catch (AssertionException exception)
{
var expectedMessage = string.Format(" String lengths are both 5. Strings differ at index 0.{0} Expected: \"World\"{0} But was: \"Hello\"{0} -----------^{0}", Environment.NewLine);
Assert.AreEqual(
expectedMessage,
e.Message);
exception.Message);
}
}
}
2 changes: 1 addition & 1 deletion src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void TestReporter()
Approvals.Verify("Hello");
}
}
catch (Exception e)
catch (AssertionException e)
{
var expectedMessage = string.Format(" Assert.That(actual, Is.EqualTo(expected)){0} String lengths are both 5. Strings differ at index 0.{0} Expected: \"World\"{0} But was: \"Hello\"{0} -----------^{0}", Environment.NewLine);
ClassicAssert.AreEqual(expectedMessage, e.Message);
Expand Down

0 comments on commit 27a6ff9

Please sign in to comment.