Skip to content

Commit

Permalink
Defined tests for equals reversal.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Apr 14, 2024
1 parent 412dace commit 6e9b082
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/Hussy.Net.Tests/Logic/EqualsReversalTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace Hussy.Net.Tests.Logic;

public class EqualsReversalTests
{
[Theory]
[InlineData("")]
[InlineData(" ")]
[InlineData(0)]
[InlineData(121)]
[InlineData("abba")]
public void EqualsReversal_InputMatchesReversal_ReturnsTrue(object testValue)
{
var reversalEqualsTestValue = testValue.EqRev();
Assert.True(reversalEqualsTestValue);
}

[Theory]
[InlineData(-1)]
[InlineData("123")]
public void EqualsReversal_InputDoesNotMatchReversal_ReturnsFalse(object testValue)
{
var reversalEqualsTestValue = testValue.EqRev();
Assert.False(reversalEqualsTestValue);
}
}

0 comments on commit 6e9b082

Please sign in to comment.