public void IsPalindromePermutationTest_ReturnFalse(string str)
        {
            bool result = Question_1_4.IsPalindromePermutation(str);

            Assert.IsFalse(result, $"{str} is palindrome permutation.");

            result = Question_1_4.IsPalindromePermutationAlt1(str);
            Assert.IsFalse(result, $"{str} is palindrome permutation - alternative 1.");

            result = Question_1_4.IsPalindromePermutationAlt2(str);
            Assert.IsFalse(result, $"{str} is palindrome permutation - alternative 2.");
        }
Example #2
0
        private void ValidateResult(string s, bool expected)
        {
            Assert.AreEqual(
                expected,
                Question_1_4.IsPalindromePermutationFast(s),
                $"IsPalindromePermutationFast failed with {s}");

            Assert.AreEqual(
                expected,
                Question_1_4.IsPalinromePermutationMinSpace(s),
                $"IsPalinromePermutationMinSpace failed with {s}");
        }