コード例 #1
0
        public void AutoKey_DecryptTest()
        {
            //Arrange
            IEncryptionAlgorithm target = new AutoKey("deceptivewearediscoveredsav");
            string plain  = "wearediscoveredsaveyourself";
            string cypher = "zicvtwqngkzeiigasxstslvvwla";

            //Act
            string actual = target.Decrypt(cypher);

            //Assert
            Assert.Equal(plain, actual);
        }