예제 #1
0
        public void IsAnagramTest()
        {
            string first  = "silver";
            string second = "livers";

            bool output = true;

            Assert.AreEqual(output, anaCLass.IsAnagram(first, second));
        }
예제 #2
0
        public void TestAnagram_WhenInputAlmaAmla_ThenTrue()
        {
            string input1 = "alma";
            string input2 = "amla";
            bool   output = true;

            Assert.AreEqual(output, anagramClass.IsAnagram(input1, input2));
        }
예제 #3
0
        public void ReallyAnAnagram(bool expected, string a, string b)
        {
            AnagramClass anagram = new AnagramClass();

            Assert.Equal(expected, anagram.IsAnagram(a, b));
        }