CipherModeTest.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Security.Cryptography.Ciphers;
  3. using Renci.SshNet.Tests.Common;
  4. namespace Renci.SshNet.Tests.Classes.Security.Cryptography.Ciphers
  5. {
  6. /// <summary>
  7. ///This is a test class for CipherModeTest and is intended
  8. ///to contain all CipherModeTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class CipherModeTest : TestBase
  12. {
  13. internal virtual CipherMode CreateCipherMode()
  14. {
  15. // TODO: Instantiate an appropriate concrete class.
  16. CipherMode target = null;
  17. return target;
  18. }
  19. /// <summary>
  20. ///A test for DecryptBlock
  21. ///</summary>
  22. [TestMethod]
  23. [Ignore] // placeholder for actual test
  24. public void DecryptBlockTest()
  25. {
  26. CipherMode target = CreateCipherMode(); // TODO: Initialize to an appropriate value
  27. byte[] inputBuffer = null; // TODO: Initialize to an appropriate value
  28. int inputOffset = 0; // TODO: Initialize to an appropriate value
  29. int inputCount = 0; // TODO: Initialize to an appropriate value
  30. byte[] outputBuffer = null; // TODO: Initialize to an appropriate value
  31. int outputOffset = 0; // TODO: Initialize to an appropriate value
  32. int expected = 0; // TODO: Initialize to an appropriate value
  33. int actual;
  34. actual = target.DecryptBlock(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset);
  35. Assert.AreEqual(expected, actual);
  36. Assert.Inconclusive("Verify the correctness of this test method.");
  37. }
  38. /// <summary>
  39. ///A test for EncryptBlock
  40. ///</summary>
  41. [TestMethod]
  42. [Ignore] // placeholder for actual test
  43. public void EncryptBlockTest()
  44. {
  45. CipherMode target = CreateCipherMode(); // TODO: Initialize to an appropriate value
  46. byte[] inputBuffer = null; // TODO: Initialize to an appropriate value
  47. int inputOffset = 0; // TODO: Initialize to an appropriate value
  48. int inputCount = 0; // TODO: Initialize to an appropriate value
  49. byte[] outputBuffer = null; // TODO: Initialize to an appropriate value
  50. int outputOffset = 0; // TODO: Initialize to an appropriate value
  51. int expected = 0; // TODO: Initialize to an appropriate value
  52. int actual;
  53. actual = target.EncryptBlock(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset);
  54. Assert.AreEqual(expected, actual);
  55. Assert.Inconclusive("Verify the correctness of this test method.");
  56. }
  57. }
  58. }