Example #1
0
 public void PermutationCheck_PassedPermutations_ReturnsTrue()
 {
     Assert.IsTrue(IsPermutation.PermutationCheck("cat", "tac"));
 }
Example #2
0
 public void PermutationCheck_PassedTwoEmptyStrings_ReturnsTrue()
 {
     Assert.IsTrue(IsPermutation.PermutationCheck("", ""));
 }
Example #3
0
 public void PermutationCheck_PassedOneEmptyString_ReturnsFalse()
 {
     Assert.IsFalse(IsPermutation.PermutationCheck("", "tac"));
 }
Example #4
0
 public void PermutationCheck_PassedNonPermutationsOfSameLength_ReturnsFalse()
 {
     Assert.IsFalse(IsPermutation.PermutationCheck("asd", "tac"));
 }