Exemplo n.º 1
0
        public void IsScrambleTest_Even()
        {
            var solution = new _087_ScrambleString();

            Assert.IsTrue(solution.IsScramble("abab", "baba"));
            Assert.IsTrue(solution.IsScramble("abcd", "bcad"));
        }
Exemplo n.º 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"));
        }
Exemplo n.º 3
0
        public void IsScrambleTest_Not()
        {
            var solution = new _087_ScrambleString();

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

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