public void LetterCannotByNull(int position) { var alphabet = new AlphabetModel(); string letter = alphabet.GetLetterByPosition(position); Assert.NotNull(letter); }
public void PositionOfLetterCannotByNull(char letter) { var alphabet = new AlphabetModel(); var position = alphabet.GetPositionByLetter(letter); Assert.NotNull(position); }
public PartialViewResult LetterBox() { var data = new AlphabetModel(); List <string> let = new List <string>(); string[] letters = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" }; foreach (var item in letters) { let.Add(item); } data.Alphabet = let; return(PartialView(data)); }