コード例 #1
0
        public void MorseCode()
        {
            MorseCode cipher = new MorseCode();

            const string plaintext  = "MORSE CODE";
            const string ciphertext = "-- --- .-. ... .   -.-. --- -.. .";

            Assert.AreEqual(ciphertext, cipher.Encrypt(plaintext));
            Assert.AreEqual(plaintext, cipher.Decrypt(ciphertext), true);
        }