示例#1
0
 public void TranspositionalCipherTest()
 {
     Assert.IsType <TranspositionalCipher>(CryptographyFactory.GetAlgorithm("transpositional"));
 }
示例#2
0
 public void InValidAlgorithmTest()
 {
     Assert.Throws <InValidAlgorithmException>(() => CryptographyFactory.GetAlgorithm("ceaser"));
 }
示例#3
0
 public void SubstitutionalCipherTest()
 {
     Assert.IsType <SubstitutionalCipher>(CryptographyFactory.GetAlgorithm("substitutional"));
 }