Example #1
0
        public void IsScrambleTest_Even()
        {
            var solution = new _087_ScrambleString();

            Assert.IsTrue(solution.IsScramble("abab", "baba"));
            Assert.IsTrue(solution.IsScramble("abcd", "bcad"));
        }
Example #2
0
        public void IsScrambleTest_Odd()
        {
            var solution = new _087_ScrambleString();

            Assert.IsTrue(solution.IsScramble("great", "rgeat"));
            Assert.IsTrue(solution.IsScramble("rgeat", "great"));
            Assert.IsTrue(solution.IsScramble("great", "rgtae"));
            Assert.IsTrue(solution.IsScramble("rgeat", "rgtae"));
        }
Example #3
0
        public void IsScrambleTest_Not()
        {
            var solution = new _087_ScrambleString();

            Assert.IsFalse(solution.IsScramble("abcde", "caebd"));
        }
Example #4
0
        public void IsScrambleTest_Same()
        {
            var solution = new _087_ScrambleString();

            Assert.IsTrue(solution.IsScramble("ab", "ab"));
        }