示例#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);
        }
示例#3
0
        public void TestOverlyMixed()
        {
            AlphabetCheck ac = new AlphabetCheck();

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

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

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

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

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

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

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

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

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

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

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

            Assert.AreEqual(false, result);
        }