コード例 #1
0
 public void encryptTestPlainTextIntegersUpperCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "1A2B3C4D5E6F7G8H9I";
     string expected = "1A2B3C4D5E6F7G8H9I";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
 public void encryptTestPlainTextIntegersLowerCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "1a2b3c4e5f6g7h8i";
     string expected = "1a2b3c4e5f6g7h8i";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
 public void encryptTestPlainTextIntegersLowerUpperCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "1aZ2bY3cX4eW5fV6gU7hT8iS";
     string expected = "1aZ2bY3cX4eW5fV6gU7hT8iS";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #4
0
 public void encryptTestPlainTextIntegers()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "123456789";
     string expected = "123456789";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #5
0
 public void encryptTestPlainTextUpperCaseString()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "ALPHABRAVOCHARLIE";
     string expected = "ALPHABRAVOCHARLIE";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #6
0
 public void encryptTestPlainTextSpecialCharactersLowerUpperCaseIntegers()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "1Az!2By@3Cx#4Dw$5Ev%6Fu^7Gt&8Hs*9Ir(0Jq)1Kp_2Lo+3Mn";
     string expected = "1Az!2By@3Cx#4Dw$5Ev%6Fu^7Gt&8Hs*9Ir(0Jq)1Kp_2Lo+3Mn";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #7
0
 public void encryptTestPlainTextSpecialCharactersUpperCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "A!B@C#D$E%F^G&H*I(J)K_L+M";
     string expected = "A!B@C#D$E%F^G&H*I(J)K_L+M";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #8
0
 public void encryptTestPlainTextSpecialCharactersLowerUpperCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "Az!By@Cx#Dw$Ev%Fu^Gt&Hs*Ir(Jq)Kp_Lo+Mn";
     string expected = "Az!By@Cx#Dw$Ev%Fu^Gt&Hs*Ir(Jq)Kp_Lo+Mn";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #9
0
 public void encryptTestPlainTextSpecialCharactersLowerCase()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "a!b@c#d$e%f^g&h*i(j)k_l+m";
     string expected = "a!b@c#d$e%f^g&h*i(j)k_l+m";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #10
0
 public void encryptTestPlainTextSpecialCharactersIntegers()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "0!9@8#7$6%5^4&3*2(1)";
     string expected = "0!9@8#7$6%5^4&3*2(1)";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #11
0
 public void encryptTestPlainTextSpecialCharacters()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "!@#$%^&*()_+";
     string expected = "!@#$%^&*()_+";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }
コード例 #12
0
 public void encryptTestPlainTextLowerCaseString()
 {
     IEncryptor target = new PlainText();
     string textToEncrypt = "alphabravocharlie";
     string expected = "alphabravocharlie";
     string actual;
     actual = target.encrypt(textToEncrypt);
     Assert.AreEqual(expected, actual);
 }