SHA1HashTest.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. /// SHA1 algorithm implementation
  8. /// </summary>
  9. [TestClass]
  10. public class SHA1HashTest : TestBase
  11. {
  12. /// <summary>
  13. ///A test for SHA1Hash Constructor
  14. ///</summary>
  15. [TestMethod()]
  16. public void SHA1HashConstructorTest()
  17. {
  18. SHA1Hash target = new SHA1Hash();
  19. Assert.Inconclusive("TODO: Implement code to verify target");
  20. }
  21. /// <summary>
  22. ///A test for Initialize
  23. ///</summary>
  24. [TestMethod()]
  25. public void InitializeTest()
  26. {
  27. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  28. target.Initialize();
  29. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  30. }
  31. /// <summary>
  32. ///A test for CanReuseTransform
  33. ///</summary>
  34. [TestMethod()]
  35. public void CanReuseTransformTest()
  36. {
  37. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  38. bool actual;
  39. actual = target.CanReuseTransform;
  40. Assert.Inconclusive("Verify the correctness of this test method.");
  41. }
  42. /// <summary>
  43. ///A test for CanTransformMultipleBlocks
  44. ///</summary>
  45. [TestMethod()]
  46. public void CanTransformMultipleBlocksTest()
  47. {
  48. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  49. bool actual;
  50. actual = target.CanTransformMultipleBlocks;
  51. Assert.Inconclusive("Verify the correctness of this test method.");
  52. }
  53. /// <summary>
  54. ///A test for HashSize
  55. ///</summary>
  56. [TestMethod()]
  57. public void HashSizeTest()
  58. {
  59. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  60. int actual;
  61. actual = target.HashSize;
  62. Assert.Inconclusive("Verify the correctness of this test method.");
  63. }
  64. /// <summary>
  65. ///A test for InputBlockSize
  66. ///</summary>
  67. [TestMethod()]
  68. public void InputBlockSizeTest()
  69. {
  70. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  71. int actual;
  72. actual = target.InputBlockSize;
  73. Assert.Inconclusive("Verify the correctness of this test method.");
  74. }
  75. /// <summary>
  76. ///A test for OutputBlockSize
  77. ///</summary>
  78. [TestMethod()]
  79. public void OutputBlockSizeTest()
  80. {
  81. SHA1Hash target = new SHA1Hash(); // TODO: Initialize to an appropriate value
  82. int actual;
  83. actual = target.OutputBlockSize;
  84. Assert.Inconclusive("Verify the correctness of this test method.");
  85. }
  86. }
  87. }