RsaCipherTest.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Security;
  3. using Renci.SshNet.Security.Cryptography.Ciphers;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Security.Cryptography.Ciphers
  6. {
  7. /// <summary>
  8. /// Implements RSA cipher algorithm.
  9. /// </summary>
  10. [TestClass]
  11. public class RsaCipherTest : TestBase
  12. {
  13. /// <summary>
  14. ///A test for RsaCipher Constructor
  15. ///</summary>
  16. [TestMethod]
  17. [Ignore] // placeholder for actual test
  18. public void RsaCipherConstructorTest()
  19. {
  20. RsaKey key = null; // TODO: Initialize to an appropriate value
  21. RsaCipher target = new RsaCipher(key);
  22. Assert.Inconclusive("TODO: Implement code to verify target");
  23. }
  24. /// <summary>
  25. ///A test for Decrypt
  26. ///</summary>
  27. [TestMethod]
  28. [Ignore] // placeholder for actual test
  29. public void DecryptTest()
  30. {
  31. RsaKey key = null; // TODO: Initialize to an appropriate value
  32. RsaCipher target = new RsaCipher(key); // TODO: Initialize to an appropriate value
  33. byte[] data = null; // TODO: Initialize to an appropriate value
  34. byte[] expected = null; // TODO: Initialize to an appropriate value
  35. byte[] actual;
  36. actual = target.Decrypt(data);
  37. Assert.AreEqual(expected, actual);
  38. Assert.Inconclusive("Verify the correctness of this test method.");
  39. }
  40. /// <summary>
  41. ///A test for Encrypt
  42. ///</summary>
  43. [TestMethod]
  44. [Ignore] // placeholder for actual test
  45. public void EncryptTest()
  46. {
  47. RsaKey key = null; // TODO: Initialize to an appropriate value
  48. RsaCipher target = new RsaCipher(key); // TODO: Initialize to an appropriate value
  49. byte[] data = null; // TODO: Initialize to an appropriate value
  50. byte[] expected = null; // TODO: Initialize to an appropriate value
  51. byte[] actual;
  52. actual = target.Encrypt(data);
  53. Assert.AreEqual(expected, actual);
  54. Assert.Inconclusive("Verify the correctness of this test method.");
  55. }
  56. }
  57. }