Beispiel #1
0
        public void TestEmptyAndNull()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet(string.Empty);

            Assert.AreEqual(false, result);

            ac.ContainsEntireAlphabet(null);
            Assert.AreEqual(false, result);
        }
        public ActionResult <bool> GetById(string input)
        {
            AlphabetCheck ac     = new AlphabetCheck();
            bool          result = ac.ContainsEntireAlphabet(input);

            return(result);
        }
Beispiel #3
0
        public void TestOverlyMixed()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet("!@$%^^*aBc%^&DeFgHiJk$%^@#LmNoPq%^*&$RsTuVwXyZ");

            Assert.AreEqual(true, result);
        }
Beispiel #4
0
        public void TestMix()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet("aBcDeFgHiJkLmNoPqRsTuVwXyZ");

            Assert.AreEqual(true, result);
        }
Beispiel #5
0
        public void TestUppers()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ");

            Assert.AreEqual(true, result);
        }
Beispiel #6
0
        public void TestLowers()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet("abcdefghijklmnopqrstuvwxyz");

            Assert.AreEqual(true, result);
        }
Beispiel #7
0
        public void TestShortString()
        {
            AlphabetCheck ac = new AlphabetCheck();

            bool result = ac.ContainsEntireAlphabet("abcde");

            Assert.AreEqual(false, result);
        }
Beispiel #8
0
        public void TestAllButOne()
        {
            AlphabetCheck ac = new AlphabetCheck();

            // Missing u
            bool result = ac.ContainsEntireAlphabet("aBcDeFgHiJkLmNoPqRsTVwXyZ");

            Assert.AreEqual(false, result);
        }