DerDataTest.cs 6.1 KB

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