CipherDigitalSignatureTest.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. ///This is a test class for CipherDigitalSignatureTest and is intended
  8. ///to contain all CipherDigitalSignatureTest Unit Tests
  9. ///</summary>
  10. [TestClass()]
  11. public class CipherDigitalSignatureTest : TestBase
  12. {
  13. internal virtual CipherDigitalSignature CreateCipherDigitalSignature()
  14. {
  15. // TODO: Instantiate an appropriate concrete class.
  16. CipherDigitalSignature 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. CipherDigitalSignature target = CreateCipherDigitalSignature(); // TODO: Initialize to an appropriate value
  27. byte[] input = null; // TODO: Initialize to an appropriate value
  28. byte[] expected = null; // TODO: Initialize to an appropriate value
  29. byte[] actual;
  30. actual = target.Sign(input);
  31. Assert.AreEqual(expected, actual);
  32. Assert.Inconclusive("Verify the correctness of this test method.");
  33. }
  34. /// <summary>
  35. ///A test for Verify
  36. ///</summary>
  37. [TestMethod]
  38. [Ignore] // placeholder for actual test
  39. public void VerifyTest()
  40. {
  41. CipherDigitalSignature target = CreateCipherDigitalSignature(); // TODO: Initialize to an appropriate value
  42. byte[] input = 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.Verify(input, signature);
  47. Assert.AreEqual(expected, actual);
  48. Assert.Inconclusive("Verify the correctness of this test method.");
  49. }
  50. }
  51. }