public void WillGenerateTwentyFiveAlternativesForAnEncryptedText() { var possiblePlains = new ReverseStandardAlphabetDecrypter().GenerateDecryptedTexts("ESUFSD"); possiblePlains.Count().Should().Be(25); foreach(var possiblePlain in possiblePlains) { // Expect to see SECRET Console.WriteLine(possiblePlain); } possiblePlains.Should().Contain("SECRET"); }
public void ShouldGenerateThePlainEquivalentOfAReverseAlphabetShiftedText() { var possiblePlains = new ReverseStandardAlphabetDecrypter().GenerateDecryptedTexts("QCBRBRQFMQFWHSLUQFGNBQCJSFOFSRFJYUCJIFQHBUCFS"); possiblePlains.Should().Contain("THISISTEXTENCRYPTEDWITHAREVERSEALPHABETCIPHER"); }
public void ShouldDecryptCipherText(string plainText, string cipherText, string description) { var possiblePlains = new ReverseStandardAlphabetDecrypter().GenerateDecryptedTexts(cipherText); possiblePlains.Should().Contain(plainText, description); }