Пример #1
0
        public void RunTest08()
        {
            CheckPermutation cp = new CheckPermutation("abc", "aab");
            var result          = cp.Run();

            Assert.IsFalse(result);
        }
Пример #2
0
        public void RunTest10()
        {
            CheckPermutation cp = new CheckPermutation("abcasdffe", "cbb");
            var result          = cp.Run();

            Assert.IsFalse(result);
        }
Пример #3
0
        public void RunTest07()
        {
            CheckPermutation cp = new CheckPermutation("cba", null);
            var result          = cp.Run();

            Assert.IsFalse(result);
        }
Пример #4
0
        public void RunTest03()
        {
            CheckPermutation cp = new CheckPermutation(null, null);
            var result          = cp.Run();

            Assert.IsTrue(result);
        }
Пример #5
0
        public void RunTest02()
        {
            CheckPermutation cp = new CheckPermutation("", "");
            var result          = cp.Run();

            Assert.IsTrue(result);
        }
Пример #6
0
        public void RunTest11()
        {
            CheckPermutation cp = new CheckPermutation("asdf", "afewfs");
            var result          = cp.Run();

            Assert.IsFalse(result);
        }
Пример #7
0
        public void CheckPermutationTest(string inputOne, string inputTwo, bool expectedResult)
        {
            var result = CheckPermutation.Run(inputOne, inputTwo);

            Assert.Equal(expectedResult, result);
        }