Пример #1
0
        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);
        }
Пример #2
0
        public DecrypterTests()
        {
            var encrypter = new Md5Encrypter();

            _sut = new Decrypter(_alphabeticWordPool, encrypter);
        }