HostAlgorithmTest.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Security;
  3. using Renci.SshNet.Tests.Common;
  4. namespace Renci.SshNet.Tests.Classes.Security
  5. {
  6. /// <summary>
  7. ///This is a test class for HostAlgorithmTest and is intended
  8. ///to contain all HostAlgorithmTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class HostAlgorithmTest : TestBase
  12. {
  13. internal virtual HostAlgorithm CreateHostAlgorithm()
  14. {
  15. // TODO: Instantiate an appropriate concrete class.
  16. HostAlgorithm target = null;
  17. return target;
  18. }
  19. /// <summary>
  20. ///A test for Sign
  21. ///</summary>
  22. [TestMethod]
  23. [Ignore] // placeholder for actual test
  24. public void SignTest()
  25. {
  26. HostAlgorithm target = CreateHostAlgorithm(); // TODO: Initialize to an appropriate value
  27. byte[] data = null; // TODO: Initialize to an appropriate value
  28. byte[] expected = null; // TODO: Initialize to an appropriate value
  29. byte[] actual;
  30. actual = target.Sign(data);
  31. Assert.AreEqual(expected, actual);
  32. Assert.Inconclusive("Verify the correctness of this test method.");
  33. }
  34. /// <summary>
  35. ///A test for VerifySignature
  36. ///</summary>
  37. [TestMethod]
  38. [Ignore] // placeholder for actual test
  39. public void VerifySignatureTest()
  40. {
  41. HostAlgorithm target = CreateHostAlgorithm(); // TODO: Initialize to an appropriate value
  42. byte[] data = null; // TODO: Initialize to an appropriate value
  43. byte[] signature = null; // TODO: Initialize to an appropriate value
  44. bool expected = false; // TODO: Initialize to an appropriate value
  45. bool actual;
  46. actual = target.VerifySignature(data, signature);
  47. Assert.AreEqual(expected, actual);
  48. Assert.Inconclusive("Verify the correctness of this test method.");
  49. }
  50. /// <summary>
  51. ///A test for Data
  52. ///</summary>
  53. [TestMethod]
  54. [Ignore] // placeholder for actual test
  55. public void DataTest()
  56. {
  57. HostAlgorithm target = CreateHostAlgorithm(); // TODO: Initialize to an appropriate value
  58. byte[] actual;
  59. actual = target.Data;
  60. Assert.Inconclusive("Verify the correctness of this test method.");
  61. }
  62. }
  63. }