NetConfClientTest.cs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Tests.Common;
  3. using System;
  4. using System.Xml;
  5. namespace Renci.SshNet.Tests.Classes
  6. {
  7. // TODO: Please help with documentation here, as I don't know the details, specially for the methods not documented.
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [TestClass]
  12. public partial class NetConfClientTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for NetConfClient Constructor
  16. ///</summary>
  17. [TestMethod]
  18. [Ignore] // placeholder for actual test
  19. public void NetConfClientConstructorTest()
  20. {
  21. string host = string.Empty; // TODO: Initialize to an appropriate value
  22. string username = string.Empty; // TODO: Initialize to an appropriate value
  23. PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
  24. NetConfClient target = new NetConfClient(host, username, keyFiles);
  25. Assert.Inconclusive("TODO: Implement code to verify target");
  26. }
  27. /// <summary>
  28. ///A test for NetConfClient Constructor
  29. ///</summary>
  30. [TestMethod]
  31. [Ignore] // placeholder for actual test
  32. public void NetConfClientConstructorTest1()
  33. {
  34. string host = string.Empty; // TODO: Initialize to an appropriate value
  35. int port = 0; // TODO: Initialize to an appropriate value
  36. string username = string.Empty; // TODO: Initialize to an appropriate value
  37. PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
  38. NetConfClient target = new NetConfClient(host, port, username, keyFiles);
  39. Assert.Inconclusive("TODO: Implement code to verify target");
  40. }
  41. /// <summary>
  42. ///A test for NetConfClient Constructor
  43. ///</summary>
  44. [TestMethod]
  45. [Ignore] // placeholder for actual test
  46. public void NetConfClientConstructorTest2()
  47. {
  48. string host = string.Empty; // TODO: Initialize to an appropriate value
  49. string username = string.Empty; // TODO: Initialize to an appropriate value
  50. string password = string.Empty; // TODO: Initialize to an appropriate value
  51. NetConfClient target = new NetConfClient(host, username, password);
  52. Assert.Inconclusive("TODO: Implement code to verify target");
  53. }
  54. /// <summary>
  55. ///A test for NetConfClient Constructor
  56. ///</summary>
  57. [TestMethod]
  58. [Ignore] // placeholder for actual test
  59. public void NetConfClientConstructorTest3()
  60. {
  61. string host = string.Empty; // TODO: Initialize to an appropriate value
  62. int port = 0; // TODO: Initialize to an appropriate value
  63. string username = string.Empty; // TODO: Initialize to an appropriate value
  64. string password = string.Empty; // TODO: Initialize to an appropriate value
  65. NetConfClient target = new NetConfClient(host, port, username, password);
  66. Assert.Inconclusive("TODO: Implement code to verify target");
  67. }
  68. /// <summary>
  69. ///A test for NetConfClient Constructor
  70. ///</summary>
  71. [TestMethod]
  72. [Ignore] // placeholder for actual test
  73. public void NetConfClientConstructorTest4()
  74. {
  75. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  76. NetConfClient target = new NetConfClient(connectionInfo);
  77. Assert.Inconclusive("TODO: Implement code to verify target");
  78. }
  79. /// <summary>
  80. ///A test for SendReceiveRpc
  81. ///</summary>
  82. [TestMethod]
  83. [Ignore] // placeholder for actual test
  84. public void SendReceiveRpcTest()
  85. {
  86. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  87. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  88. string xml = string.Empty; // TODO: Initialize to an appropriate value
  89. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  90. XmlDocument actual;
  91. actual = target.SendReceiveRpc(xml);
  92. Assert.AreEqual(expected, actual);
  93. Assert.Inconclusive("Verify the correctness of this test method.");
  94. }
  95. /// <summary>
  96. ///A test for SendReceiveRpc
  97. ///</summary>
  98. [TestMethod]
  99. [Ignore] // placeholder for actual test
  100. public void SendReceiveRpcTest1()
  101. {
  102. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  103. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  104. XmlDocument rpc = null; // TODO: Initialize to an appropriate value
  105. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  106. XmlDocument actual;
  107. actual = target.SendReceiveRpc(rpc);
  108. Assert.AreEqual(expected, actual);
  109. Assert.Inconclusive("Verify the correctness of this test method.");
  110. }
  111. /// <summary>
  112. ///A test for SendCloseRpc
  113. ///</summary>
  114. [TestMethod]
  115. [Ignore] // placeholder for actual test
  116. public void SendCloseRpcTest()
  117. {
  118. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  119. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  120. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  121. XmlDocument actual;
  122. actual = target.SendCloseRpc();
  123. Assert.AreEqual(expected, actual);
  124. Assert.Inconclusive("Verify the correctness of this test method.");
  125. }
  126. /// <summary>
  127. ///A test for ServerCapabilities
  128. ///</summary>
  129. [TestMethod]
  130. [Ignore] // placeholder for actual test
  131. public void ServerCapabilitiesTest()
  132. {
  133. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  134. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  135. XmlDocument actual;
  136. actual = target.ServerCapabilities;
  137. Assert.Inconclusive("Verify the correctness of this test method.");
  138. }
  139. /// <summary>
  140. ///A test for OperationTimeout
  141. ///</summary>
  142. [TestMethod]
  143. [Ignore] // placeholder for actual test
  144. public void OperationTimeoutTest()
  145. {
  146. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  147. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  148. TimeSpan expected = new TimeSpan(); // TODO: Initialize to an appropriate value
  149. TimeSpan actual;
  150. target.OperationTimeout = expected;
  151. actual = target.OperationTimeout;
  152. Assert.AreEqual(expected, actual);
  153. Assert.Inconclusive("Verify the correctness of this test method.");
  154. }
  155. /// <summary>
  156. ///A test for ClientCapabilities
  157. ///</summary>
  158. [TestMethod]
  159. [Ignore] // placeholder for actual test
  160. public void ClientCapabilitiesTest()
  161. {
  162. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  163. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  164. XmlDocument actual;
  165. actual = target.ClientCapabilities;
  166. Assert.Inconclusive("Verify the correctness of this test method.");
  167. }
  168. /// <summary>
  169. ///A test for AutomaticMessageIdHandling
  170. ///</summary>
  171. [TestMethod]
  172. [Ignore] // placeholder for actual test
  173. public void AutomaticMessageIdHandlingTest()
  174. {
  175. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  176. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  177. bool expected = false; // TODO: Initialize to an appropriate value
  178. bool actual;
  179. target.AutomaticMessageIdHandling = expected;
  180. actual = target.AutomaticMessageIdHandling;
  181. Assert.AreEqual(expected, actual);
  182. Assert.Inconclusive("Verify the correctness of this test method.");
  183. }
  184. }
  185. }