public void ShouldReverseList() { var a = PalindromSolverReverse.FromString("ABC"); Node reverse = a.Reverse(); Assert.Equal("CBA", reverse.ToString()); }
public void ShouldCheckMatchesEmpty() { PalindromSolverReverse a = PalindromSolverReverse.FromString(""); PalindromSolverReverse b = PalindromSolverReverse.FromString(""); Assert.True(a.Matches(b)); }
public void ShouldCheckNotMatchesSameSize() { PalindromSolverReverse a = PalindromSolverReverse.FromString("ABC"); PalindromSolverReverse b = PalindromSolverReverse.FromString("ABZ"); Assert.False(a.Matches(b)); }
public void ShouldCheckTwoCharsNotPalindromString() { var a = PalindromSolverReverse.FromString("AB"); Assert.False(a.IsPalindrom()); }
public void ShouldCheckTwoCharsPalindromString() { var a = PalindromSolverReverse.FromString("AA"); Assert.True(a.IsPalindrom()); }
public void ShouldParsePalindrom() { PalindromSolverReverse palindrom = PalindromSolverReverse.FromString("ABA"); Assert.Equal("ABA", palindrom.ToString()); }
public void ShouldCheckEmptyString() { var a = PalindromSolverReverse.FromString(""); Assert.True(a.IsPalindrom()); }
public void ShouldCheckSmallPalindrom() { var a = PalindromSolverReverse.FromString("ABA"); Assert.True(a.IsPalindrom()); }