Пример #1
0
        public void Simple()
        {
            const string First  = "amo";
            const string Second = "moa";

            Assert.IsTrue(StringAlgorithms.IsAnagram(First, Second));
        }
Пример #2
0
        public void Not()
        {
            const string First  = "amoo";
            const string Second = "moa";

            Assert.IsFalse(StringAlgorithms.IsAnagram(First, Second));
        }
Пример #3
0
        public void BigChars()
        {
            const string First  = "qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUITOP[]ASDFGHJKL;'ZXCVBNM,./";
            const string Second = "qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUITOP[]ASDFGHJKL;'ZXCVBNM,./";

            Assert.IsTrue(StringAlgorithms.IsAnagram(First, Second));
        }
Пример #4
0
        public void Casing()
        {
            const string First  = "amo";
            const string Second = "AMO";

            Assert.IsTrue(StringAlgorithms.IsAnagram(First, Second));
        }