2
0

SymmetricCipherTest.cs 2.7 KB

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