2
0

CipherTest.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Security.Cryptography;
  3. using Renci.SshNet.Tests.Common;
  4. namespace Renci.SshNet.Tests.Classes.Security.Cryptography
  5. {
  6. /// <summary>
  7. ///This is a test class for CipherTest and is intended
  8. ///to contain all CipherTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class CipherTest : TestBase
  12. {
  13. internal virtual Cipher CreateCipher()
  14. {
  15. // TODO: Instantiate an appropriate concrete class.
  16. Cipher target = null;
  17. return target;
  18. }
  19. /// <summary>
  20. ///A test for Decrypt
  21. ///</summary>
  22. [TestMethod]
  23. [Ignore] // placeholder for actual test
  24. public void DecryptTest()
  25. {
  26. Cipher target = CreateCipher(); // TODO: Initialize to an appropriate value
  27. byte[] input = null; // TODO: Initialize to an appropriate value
  28. byte[] expected = null; // TODO: Initialize to an appropriate value
  29. byte[] actual;
  30. actual = target.Decrypt(input);
  31. Assert.AreEqual(expected, actual);
  32. Assert.Inconclusive("Verify the correctness of this test method.");
  33. }
  34. /// <summary>
  35. ///A test for Encrypt
  36. ///</summary>
  37. [TestMethod]
  38. [Ignore] // placeholder for actual test
  39. public void EncryptTest()
  40. {
  41. Cipher target = CreateCipher(); // TODO: Initialize to an appropriate value
  42. byte[] input = null; // TODO: Initialize to an appropriate value
  43. byte[] expected = null; // TODO: Initialize to an appropriate value
  44. byte[] actual;
  45. actual = target.Encrypt(input);
  46. Assert.AreEqual(expected, actual);
  47. Assert.Inconclusive("Verify the correctness of this test method.");
  48. }
  49. }
  50. }