diff --git a/src/ApprovalTests.NUnit3/NUnitReporterTest.cs b/src/ApprovalTests.NUnit3/NUnitReporterTest.cs
index e0a2dc4a..98cebdc6 100644
--- a/src/ApprovalTests.NUnit3/NUnitReporterTest.cs
+++ b/src/ApprovalTests.NUnit3/NUnitReporterTest.cs
@@ -1,3 +1,5 @@
+using NUnit.Framework.Legacy;
+
[TestFixture]
public class NUnitReporterTest
{
@@ -5,7 +7,7 @@ public class NUnitReporterTest
public void TestNunitIsWorking()
{
Approvals.SetCaller();
- Assert.IsTrue(NUnit3Reporter.INSTANCE.IsWorkingInThisEnvironment("default.txt"));
+ ClassicAssert.IsTrue(NUnit3Reporter.INSTANCE.IsWorkingInThisEnvironment("default.txt"));
}
[Test]
@@ -22,7 +24,7 @@ public void TestReporter()
catch (AssertionException exception)
{
var expected = 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(
+ ClassicAssert.AreEqual(
expected,
exception.Message);
}
diff --git a/src/ApprovalTests/Combinations/CombinationApprovals.cs b/src/ApprovalTests/Combinations/CombinationApprovals.cs
index 533de93a..d59d5d4f 100644
--- a/src/ApprovalTests/Combinations/CombinationApprovals.cs
+++ b/src/ApprovalTests/Combinations/CombinationApprovals.cs
@@ -178,8 +178,7 @@ public static string GetApprovalString(Func {resultFormatter(result)}\n");
}, aList, bList, cList, dList, eList, fList, gList, hList, iList);
- var combinations = sb.ToString();
- return combinations;
+ return sb.ToString();
}
static void AllCombinations(Action processCall, IEnumerable aList, IEnumerable bList, IEnumerable cList, IEnumerable dList, IEnumerable eList, IEnumerable fList, IEnumerable gList, IEnumerable hList, IEnumerable iList)