コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: hornoo/IN710hornerb1
        public void Rot13_encryptAString_encryptedString()
        {
            ROT13Encryt encryptmachine = new ROT13Encryt();

            String plaintext = "Richard Horne";
            String expectedtext = "Evpuneq Ubear";
            String resulttext = encryptmachine.EncryptDecrypt(plaintext);

            Assert.AreEqual(expectedtext, resulttext);
        }
コード例 #2
0
ファイル: UnitTest1.cs プロジェクト: hornoo/IN710hornerb1
        public void Rot13_DecryptAStringAndNumbers_encryptedString()
        {
            ROT13Encryt encryptmachine = new ROT13Encryt();

            String encyptedText = "Evpuneq 13 Ubear 01";
            String expectedtext = "Richard 13 Horne 01";
            String resulttext = encryptmachine.EncryptDecrypt(encyptedText);

            Assert.AreEqual(expectedtext, resulttext);
        }