Skip to content

Commit

Permalink
ClassicAssert
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 18, 2024
1 parent 41157cf commit a64c16e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/ApprovalTests.NUnit3/NUnitReporterTest.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using NUnit.Framework.Legacy;

[TestFixture]
public class NUnitReporterTest
{
[Test]
public void TestNunitIsWorking()
{
Approvals.SetCaller();
Assert.IsTrue(NUnit3Reporter.INSTANCE.IsWorkingInThisEnvironment("default.txt"));
ClassicAssert.IsTrue(NUnit3Reporter.INSTANCE.IsWorkingInThisEnvironment("default.txt"));
}

[Test]
Expand All @@ -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);
}
Expand Down
3 changes: 1 addition & 2 deletions src/ApprovalTests/Combinations/CombinationApprovals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ public static string GetApprovalString<A, B, C, D, E, F, G, H, I>(Func<A, B, C,
sb.Append($"{input} => {resultFormatter(result)}\n");
}, aList, bList, cList, dList, eList, fList, gList, hList, iList);

var combinations = sb.ToString();
return combinations;
return sb.ToString();
}

static void AllCombinations<A, B, C, D, E, F, G, H, I>(Action<A, B, C, D, E, F, G, H, I> processCall, IEnumerable<A> aList, IEnumerable<B> bList, IEnumerable<C> cList, IEnumerable<D> dList, IEnumerable<E> eList, IEnumerable<F> fList, IEnumerable<G> gList, IEnumerable<H> hList, IEnumerable<I> iList)
Expand Down

0 comments on commit a64c16e

Please sign in to comment.