public void testAnagram() { Assert.IsTrue(Algorythmics.IsAnagram("asdf0", "fd0sa")); Assert.IsTrue(Algorythmics.IsAnagram("beata", "atbae")); Assert.IsFalse(Algorythmics.IsAnagram("beas", "atbae")); Assert.IsFalse(Algorythmics.IsAnagram("beaaa", "atbae")); }
public void testPalindrom2() { Assert.IsTrue(Algorythmics.IsPalindrom11("radar")); Assert.IsTrue(Algorythmics.IsPalindrom11("abnrnba")); Assert.IsTrue(Algorythmics.IsPalindrom11("abnrrnba")); Assert.IsTrue(Algorythmics.IsPalindrom11("123321")); Assert.IsFalse(Algorythmics.IsPalindrom11("123jkl321")); }
public void testRewers() { Assert.IsTrue(Algorythmics.Rewers("adhkl") == "lkhda"); Assert.IsTrue(Algorythmics.Rewers("beata") == "ataeb"); Assert.IsFalse(Algorythmics.Rewers("bartłomij") == "bartłomiej"); }