CfbCipherModeTest.cs 3.0 KB

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