DerDataTest.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. using Renci.SshNet.Common;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Common
  6. {
  7. /// <summary>
  8. ///This is a test class for DerDataTest and is intended
  9. ///to contain all DerDataTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. [Ignore] // placeholder for actual test
  13. public class DerDataTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for DerData Constructor
  17. ///</summary>
  18. [TestMethod()]
  19. public void DerDataConstructorTest()
  20. {
  21. DerData target = new DerData();
  22. Assert.Inconclusive("TODO: Implement code to verify target");
  23. }
  24. /// <summary>
  25. ///A test for DerData Constructor
  26. ///</summary>
  27. [TestMethod()]
  28. public void DerDataConstructorTest1()
  29. {
  30. byte[] data = null; // TODO: Initialize to an appropriate value
  31. DerData target = new DerData(data);
  32. Assert.Inconclusive("TODO: Implement code to verify target");
  33. }
  34. /// <summary>
  35. ///A test for Encode
  36. ///</summary>
  37. [TestMethod()]
  38. public void EncodeTest()
  39. {
  40. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  41. byte[] expected = null; // TODO: Initialize to an appropriate value
  42. byte[] actual;
  43. actual = target.Encode();
  44. Assert.AreEqual(expected, actual);
  45. Assert.Inconclusive("Verify the correctness of this test method.");
  46. }
  47. /// <summary>
  48. ///A test for ReadBigInteger
  49. ///</summary>
  50. [TestMethod()]
  51. public void ReadBigIntegerTest()
  52. {
  53. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  54. BigInteger expected = new BigInteger(); // TODO: Initialize to an appropriate value
  55. BigInteger actual;
  56. actual = target.ReadBigInteger();
  57. Assert.AreEqual(expected, actual);
  58. Assert.Inconclusive("Verify the correctness of this test method.");
  59. }
  60. /// <summary>
  61. ///A test for ReadInteger
  62. ///</summary>
  63. [TestMethod()]
  64. public void ReadIntegerTest()
  65. {
  66. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  67. int expected = 0; // TODO: Initialize to an appropriate value
  68. int actual;
  69. actual = target.ReadInteger();
  70. Assert.AreEqual(expected, actual);
  71. Assert.Inconclusive("Verify the correctness of this test method.");
  72. }
  73. /// <summary>
  74. ///A test for Write
  75. ///</summary>
  76. [TestMethod()]
  77. public void WriteTest()
  78. {
  79. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  80. bool data = false; // TODO: Initialize to an appropriate value
  81. target.Write(data);
  82. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  83. }
  84. /// <summary>
  85. ///A test for Write
  86. ///</summary>
  87. [TestMethod()]
  88. public void WriteTest1()
  89. {
  90. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  91. uint data = 0; // TODO: Initialize to an appropriate value
  92. target.Write(data);
  93. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  94. }
  95. /// <summary>
  96. ///A test for Write
  97. ///</summary>
  98. [TestMethod()]
  99. public void WriteTest2()
  100. {
  101. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  102. BigInteger data = new BigInteger(); // TODO: Initialize to an appropriate value
  103. target.Write(data);
  104. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  105. }
  106. /// <summary>
  107. ///A test for Write
  108. ///</summary>
  109. [TestMethod()]
  110. public void WriteTest3()
  111. {
  112. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  113. byte[] data = null; // TODO: Initialize to an appropriate value
  114. target.Write(data);
  115. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  116. }
  117. /// <summary>
  118. ///A test for Write
  119. ///</summary>
  120. [TestMethod()]
  121. public void WriteTest4()
  122. {
  123. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  124. ObjectIdentifier identifier = new ObjectIdentifier(); // TODO: Initialize to an appropriate value
  125. target.Write(identifier);
  126. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  127. }
  128. /// <summary>
  129. ///A test for Write
  130. ///</summary>
  131. [TestMethod()]
  132. public void WriteTest5()
  133. {
  134. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  135. DerData data = null; // TODO: Initialize to an appropriate value
  136. target.Write(data);
  137. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  138. }
  139. /// <summary>
  140. ///A test for WriteNull
  141. ///</summary>
  142. [TestMethod()]
  143. public void WriteNullTest()
  144. {
  145. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  146. target.WriteNull();
  147. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  148. }
  149. /// <summary>
  150. ///A test for IsEndOfData
  151. ///</summary>
  152. [TestMethod()]
  153. public void IsEndOfDataTest()
  154. {
  155. DerData target = new DerData(); // TODO: Initialize to an appropriate value
  156. bool actual;
  157. actual = target.IsEndOfData;
  158. Assert.Inconclusive("Verify the correctness of this test method.");
  159. }
  160. }
  161. }