CertificateHostAlgorithmTest.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 CertificateHostAlgorithmTest and is intended
  8. ///to contain all CertificateHostAlgorithmTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class CertificateHostAlgorithmTest : TestBase
  12. {
  13. /// <summary>
  14. ///A test for CertificateHostAlgorithm Constructor
  15. ///</summary>
  16. [TestMethod]
  17. public void CertificateHostAlgorithmConstructorTest()
  18. {
  19. string name = string.Empty; // TODO: Initialize to an appropriate value
  20. CertificateHostAlgorithm target = new CertificateHostAlgorithm(name);
  21. Assert.Inconclusive("TODO: Implement code to verify target");
  22. }
  23. /// <summary>
  24. ///A test for Sign
  25. ///</summary>
  26. [TestMethod]
  27. [Ignore] // placeholder for actual test
  28. public void SignTest()
  29. {
  30. string name = string.Empty; // TODO: Initialize to an appropriate value
  31. CertificateHostAlgorithm target = new CertificateHostAlgorithm(name); // TODO: Initialize to an appropriate value
  32. byte[] data = null; // TODO: Initialize to an appropriate value
  33. byte[] expected = null; // TODO: Initialize to an appropriate value
  34. byte[] actual;
  35. actual = target.Sign(data);
  36. Assert.AreEqual(expected, actual);
  37. Assert.Inconclusive("Verify the correctness of this test method.");
  38. }
  39. /// <summary>
  40. ///A test for VerifySignature
  41. ///</summary>
  42. [TestMethod]
  43. [Ignore] // placeholder for actual test
  44. public void VerifySignatureTest()
  45. {
  46. string name = string.Empty; // TODO: Initialize to an appropriate value
  47. CertificateHostAlgorithm target = new CertificateHostAlgorithm(name); // TODO: Initialize to an appropriate value
  48. byte[] data = null; // TODO: Initialize to an appropriate value
  49. byte[] signature = null; // TODO: Initialize to an appropriate value
  50. bool expected = false; // TODO: Initialize to an appropriate value
  51. bool actual;
  52. actual = target.VerifySignature(data, signature);
  53. Assert.AreEqual(expected, actual);
  54. Assert.Inconclusive("Verify the correctness of this test method.");
  55. }
  56. /// <summary>
  57. ///A test for Data
  58. ///</summary>
  59. [TestMethod]
  60. [Ignore] // placeholder for actual test
  61. public void DataTest()
  62. {
  63. string name = string.Empty; // TODO: Initialize to an appropriate value
  64. CertificateHostAlgorithm target = new CertificateHostAlgorithm(name); // TODO: Initialize to an appropriate value
  65. byte[] actual;
  66. actual = target.Data;
  67. Assert.Inconclusive("Verify the correctness of this test method.");
  68. }
  69. }
  70. }