public void Tests(string anagram, string hash, string expectedPhrase) { var ecrypter = new Md5Encrypter(); var words = File.ReadLines("fractionOfWords.txt").ToList(); var sut = new Decrypter(words, ecrypter); var actualPhrase = sut.GetDecryptedPhrase(hash, anagram); Assert.Equal(expectedPhrase, actualPhrase); }
public DecrypterTests() { var encrypter = new Md5Encrypter(); _sut = new Decrypter(_alphabeticWordPool, encrypter); }