public void ArePermutationsWithWhiteSpace(IPermutationsAnalyzer analyzer) { string firstPhrase = "abcdefghijk"; string secondPhrase = "ab cde fg hi jk"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(false, result); }
public void ArePermutationsCaseInsensitive(IPermutationsAnalyzer analyzer) { string firstPhrase = "abcdefghijk"; string secondPhrase = "aBcDeFghijk"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(false, result); }
public void AreNotPermutationsSameLengthTest(IPermutationsAnalyzer analyzer) { string firstPhrase = "abcdefghijk"; string secondPhrase = "aedkendiend"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(false, result); }
public void AreNotPermutationsTest(IPermutationsAnalyzer analyzer) { string firstPhrase = "This is a random string"; string secondPhrase = "This is a random string again"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(false, result); }
public void ArePermutationsTest(IPermutationsAnalyzer analyzer) { string firstPhrase = "abcdefgh"; string secondPhrase = "hgfedcba"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(true, result); }
public void AreNotPermutationsWithSimilarValues(IPermutationsAnalyzer analyzer) { string firstPhrase = "ad"; string secondPhrase = "bc"; bool result = analyzer.ArePermutations(firstPhrase, secondPhrase); Assert.AreEqual(false, result); }