public void AnagramCheckFalseTest()
        {
            bool expected = false;

            bool actual = AnagramMethod.AnagramCheck("Stockholm", "Stokholm");

            Assert.AreEqual(expected, actual);
        }
        public void AnagramCheckTrueTest()
        {
            //The expectation of the method is true
            bool expected = true;

            //What the method actually delivers
            bool actual = AnagramMethod.AnagramCheck("PaRis", "sirap");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void IsAnagram0() // with equal strings
        {
            bool result = AnagramMethod.IsAnagram("MethodTest", "Methodtest");

            Assert.True(result);
        }
Esempio n. 4
0
        public void IsAnagram3() // with a few whitespace
        {
            bool result = AnagramMethod.IsAnagram("Methodtest", "M e Thod tes t  ");

            Assert.True(result);
        }
Esempio n. 5
0
        public void IsAnagram2() // checking case-sensitivity
        {
            bool result = AnagramMethod.IsAnagram("methodTEST", "METHODtest");

            Assert.True(result);
        }
Esempio n. 6
0
        public void IsAnagram1() //with non-equal strings
        {
            bool result = AnagramMethod.IsAnagram("MethodTest", "MuthudTust");

            Assert.False(result);
        }