DsaKeyTest.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Common;
  3. using Renci.SshNet.Security;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Security.Cryptography
  6. {
  7. /// <summary>
  8. ///This is a test class for DsaKeyTest and is intended
  9. ///to contain all DsaKeyTest Unit Tests
  10. ///</summary>
  11. [TestClass]
  12. public class DsaKeyTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for DsaKey Constructor
  16. ///</summary>
  17. [TestMethod]
  18. [Ignore] // placeholder for actual test
  19. public void DsaKeyConstructorTest()
  20. {
  21. DsaKey target = new DsaKey();
  22. Assert.Inconclusive("TODO: Implement code to verify target");
  23. }
  24. /// <summary>
  25. ///A test for DsaKey Constructor
  26. ///</summary>
  27. [TestMethod]
  28. [Ignore] // placeholder for actual test
  29. public void DsaKeyConstructorTest1()
  30. {
  31. byte[] data = null; // TODO: Initialize to an appropriate value
  32. DsaKey target = new DsaKey(data);
  33. Assert.Inconclusive("TODO: Implement code to verify target");
  34. }
  35. /// <summary>
  36. ///A test for DsaKey Constructor
  37. ///</summary>
  38. [TestMethod]
  39. [Ignore] // placeholder for actual test
  40. public void DsaKeyConstructorTest2()
  41. {
  42. BigInteger p = new BigInteger(); // TODO: Initialize to an appropriate value
  43. BigInteger q = new BigInteger(); // TODO: Initialize to an appropriate value
  44. BigInteger g = new BigInteger(); // TODO: Initialize to an appropriate value
  45. BigInteger y = new BigInteger(); // TODO: Initialize to an appropriate value
  46. BigInteger x = new BigInteger(); // TODO: Initialize to an appropriate value
  47. DsaKey target = new DsaKey(p, q, g, y, x);
  48. Assert.Inconclusive("TODO: Implement code to verify target");
  49. }
  50. /// <summary>
  51. ///A test for Dispose
  52. ///</summary>
  53. [TestMethod]
  54. [Ignore] // placeholder for actual test
  55. public void DisposeTest()
  56. {
  57. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  58. target.Dispose();
  59. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  60. }
  61. /// <summary>
  62. ///A test for G
  63. ///</summary>
  64. [TestMethod]
  65. [Ignore] // placeholder for actual test
  66. public void GTest()
  67. {
  68. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  69. BigInteger actual;
  70. actual = target.G;
  71. Assert.Inconclusive("Verify the correctness of this test method.");
  72. }
  73. /// <summary>
  74. ///A test for KeyLength
  75. ///</summary>
  76. [TestMethod]
  77. [Ignore] // placeholder for actual test
  78. public void KeyLengthTest()
  79. {
  80. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  81. int actual;
  82. actual = target.KeyLength;
  83. Assert.Inconclusive("Verify the correctness of this test method.");
  84. }
  85. /// <summary>
  86. ///A test for P
  87. ///</summary>
  88. [TestMethod]
  89. [Ignore] // placeholder for actual test
  90. public void PTest()
  91. {
  92. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  93. BigInteger actual;
  94. actual = target.P;
  95. Assert.Inconclusive("Verify the correctness of this test method.");
  96. }
  97. /// <summary>
  98. ///A test for Public
  99. ///</summary>
  100. [TestMethod]
  101. [Ignore] // placeholder for actual test
  102. public void PublicTest()
  103. {
  104. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  105. BigInteger[] expected = null; // TODO: Initialize to an appropriate value
  106. BigInteger[] actual;
  107. target.Public = expected;
  108. actual = target.Public;
  109. Assert.AreEqual(expected, actual);
  110. Assert.Inconclusive("Verify the correctness of this test method.");
  111. }
  112. /// <summary>
  113. ///A test for Q
  114. ///</summary>
  115. [TestMethod]
  116. [Ignore] // placeholder for actual test
  117. public void QTest()
  118. {
  119. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  120. BigInteger actual;
  121. actual = target.Q;
  122. Assert.Inconclusive("Verify the correctness of this test method.");
  123. }
  124. /// <summary>
  125. ///A test for X
  126. ///</summary>
  127. [TestMethod]
  128. [Ignore] // placeholder for actual test
  129. public void XTest()
  130. {
  131. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  132. BigInteger actual;
  133. actual = target.X;
  134. Assert.Inconclusive("Verify the correctness of this test method.");
  135. }
  136. /// <summary>
  137. ///A test for Y
  138. ///</summary>
  139. [TestMethod]
  140. [Ignore] // placeholder for actual test
  141. public void YTest()
  142. {
  143. DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value
  144. BigInteger actual;
  145. actual = target.Y;
  146. Assert.Inconclusive("Verify the correctness of this test method.");
  147. }
  148. }
  149. }