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); }
public void TestOverlyMixed() { AlphabetCheck ac = new AlphabetCheck(); bool result = ac.ContainsEntireAlphabet("!@$%^^*aBc%^&DeFgHiJk$%^@#LmNoPq%^*&$RsTuVwXyZ"); Assert.AreEqual(true, result); }
public void TestMix() { AlphabetCheck ac = new AlphabetCheck(); bool result = ac.ContainsEntireAlphabet("aBcDeFgHiJkLmNoPqRsTuVwXyZ"); Assert.AreEqual(true, result); }
public void TestUppers() { AlphabetCheck ac = new AlphabetCheck(); bool result = ac.ContainsEntireAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); Assert.AreEqual(true, result); }
public void TestLowers() { AlphabetCheck ac = new AlphabetCheck(); bool result = ac.ContainsEntireAlphabet("abcdefghijklmnopqrstuvwxyz"); Assert.AreEqual(true, result); }
public void TestShortString() { AlphabetCheck ac = new AlphabetCheck(); bool result = ac.ContainsEntireAlphabet("abcde"); Assert.AreEqual(false, result); }
public void TestAllButOne() { AlphabetCheck ac = new AlphabetCheck(); // Missing u bool result = ac.ContainsEntireAlphabet("aBcDeFgHiJkLmNoPqRsTVwXyZ"); Assert.AreEqual(false, result); }