Esempio n. 1
0
        public void CheckPermutationShoulReturnTrueOrFalseWhenGivenOneAndOtherStrings(string one, string other, bool expected)
        {
            CheckPermutation checkPermutation = new CheckPermutation();
            bool             actual           = checkPermutation.IsPermutation(one, other);

            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void CheckPermutationTest(string a, string b, bool expected)
        {
            // act
            var actual = CheckPermutation.IsPermutation(a, b);

            // assert
            Assert.That(actual, Is.EqualTo(expected));
        }
        public void Given_Two_Strings_Where_One_String_Is_Not_A_Permutation_Of_The_First_IsPermutation_Returns_False(string s, string ss)
        {
            var actual = CheckPermutation.IsPermutation(s, ss);

            Assert.False(actual);
        }
Esempio n. 4
0
 public void IsPermutation()
 {
     Assert.AreEqual(CheckPermutation.IsPermutation(original, permutation), true);
     Assert.AreEqual(CheckPermutation.IsPermutation(original, notPermutation), false);
 }
Esempio n. 5
0
        public void Test6()
        {
            var actual = CheckPermutation.IsPermutation("test111111", "111112tset");

            Assert.IsFalse(actual);
        }
Esempio n. 6
0
        public void Test5()
        {
            var actual = CheckPermutation.IsPermutation("test111111", "111111tset");

            Assert.IsTrue(actual);
        }
Esempio n. 7
0
        public void Test4()
        {
            var actual = CheckPermutation.IsPermutation("test", "tset");

            Assert.IsTrue(actual);
        }
Esempio n. 8
0
        public void Test3()
        {
            var actual = CheckPermutation.IsPermutation("test", "tess");

            Assert.IsFalse(actual);
        }