public void BookCipherEncryptWithNullWordThrows() { BookCipher.Encrypt("fest", BookWithNullWord, ',', LetterSelection.FirstLetter); }
public void BookCipherEncryptWithAlphabetIsSuccessful() { var result = BookCipher.Encrypt("sphinx quartz fledgy bmw v jock", BookWithAllLetters, ',', LetterSelection.FirstLetter); Assert.AreEqual("1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26", result, "encrypt be 1..26"); }
public void BookCipherEncryptWithMissingLetterThrows() { BookCipher.Encrypt("fart", Book1, ',', LetterSelection.FirstLetter); }
public void BookCipherEncryptBasicIsSuccessful() { var result = BookCipher.Encrypt("fest", Book1, ',', LetterSelection.FirstLetter); Assert.AreEqual("1,2,3,4", result, "encrypt be 1,2,3,4"); }