NetConfClientTest.cs 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. public void NetConfClientConstructorTest()
  19. {
  20. string host = string.Empty; // TODO: Initialize to an appropriate value
  21. string username = string.Empty; // TODO: Initialize to an appropriate value
  22. PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
  23. NetConfClient target = new NetConfClient(host, username, keyFiles);
  24. Assert.Inconclusive("TODO: Implement code to verify target");
  25. }
  26. /// <summary>
  27. ///A test for NetConfClient Constructor
  28. ///</summary>
  29. [TestMethod()]
  30. public void NetConfClientConstructorTest1()
  31. {
  32. string host = string.Empty; // TODO: Initialize to an appropriate value
  33. int port = 0; // TODO: Initialize to an appropriate value
  34. string username = string.Empty; // TODO: Initialize to an appropriate value
  35. PrivateKeyFile[] keyFiles = null; // TODO: Initialize to an appropriate value
  36. NetConfClient target = new NetConfClient(host, port, username, keyFiles);
  37. Assert.Inconclusive("TODO: Implement code to verify target");
  38. }
  39. /// <summary>
  40. ///A test for NetConfClient Constructor
  41. ///</summary>
  42. [TestMethod()]
  43. public void NetConfClientConstructorTest2()
  44. {
  45. string host = string.Empty; // TODO: Initialize to an appropriate value
  46. string username = string.Empty; // TODO: Initialize to an appropriate value
  47. string password = string.Empty; // TODO: Initialize to an appropriate value
  48. NetConfClient target = new NetConfClient(host, username, password);
  49. Assert.Inconclusive("TODO: Implement code to verify target");
  50. }
  51. /// <summary>
  52. ///A test for NetConfClient Constructor
  53. ///</summary>
  54. [TestMethod()]
  55. public void NetConfClientConstructorTest3()
  56. {
  57. string host = string.Empty; // TODO: Initialize to an appropriate value
  58. int port = 0; // TODO: Initialize to an appropriate value
  59. string username = string.Empty; // TODO: Initialize to an appropriate value
  60. string password = string.Empty; // TODO: Initialize to an appropriate value
  61. NetConfClient target = new NetConfClient(host, port, username, password);
  62. Assert.Inconclusive("TODO: Implement code to verify target");
  63. }
  64. /// <summary>
  65. ///A test for NetConfClient Constructor
  66. ///</summary>
  67. [TestMethod()]
  68. public void NetConfClientConstructorTest4()
  69. {
  70. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  71. NetConfClient target = new NetConfClient(connectionInfo);
  72. Assert.Inconclusive("TODO: Implement code to verify target");
  73. }
  74. /// <summary>
  75. ///A test for SendReceiveRpc
  76. ///</summary>
  77. [TestMethod()]
  78. public void SendReceiveRpcTest()
  79. {
  80. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  81. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  82. string xml = string.Empty; // TODO: Initialize to an appropriate value
  83. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  84. XmlDocument actual;
  85. actual = target.SendReceiveRpc(xml);
  86. Assert.AreEqual(expected, actual);
  87. Assert.Inconclusive("Verify the correctness of this test method.");
  88. }
  89. /// <summary>
  90. ///A test for SendReceiveRpc
  91. ///</summary>
  92. [TestMethod()]
  93. public void SendReceiveRpcTest1()
  94. {
  95. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  96. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  97. XmlDocument rpc = null; // TODO: Initialize to an appropriate value
  98. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  99. XmlDocument actual;
  100. actual = target.SendReceiveRpc(rpc);
  101. Assert.AreEqual(expected, actual);
  102. Assert.Inconclusive("Verify the correctness of this test method.");
  103. }
  104. /// <summary>
  105. ///A test for SendCloseRpc
  106. ///</summary>
  107. [TestMethod()]
  108. public void SendCloseRpcTest()
  109. {
  110. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  111. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  112. XmlDocument expected = null; // TODO: Initialize to an appropriate value
  113. XmlDocument actual;
  114. actual = target.SendCloseRpc();
  115. Assert.AreEqual(expected, actual);
  116. Assert.Inconclusive("Verify the correctness of this test method.");
  117. }
  118. /// <summary>
  119. ///A test for ServerCapabilities
  120. ///</summary>
  121. [TestMethod()]
  122. public void ServerCapabilitiesTest()
  123. {
  124. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  125. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  126. XmlDocument actual;
  127. actual = target.ServerCapabilities;
  128. Assert.Inconclusive("Verify the correctness of this test method.");
  129. }
  130. /// <summary>
  131. ///A test for OperationTimeout
  132. ///</summary>
  133. [TestMethod()]
  134. public void OperationTimeoutTest()
  135. {
  136. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  137. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  138. TimeSpan expected = new TimeSpan(); // TODO: Initialize to an appropriate value
  139. TimeSpan actual;
  140. target.OperationTimeout = expected;
  141. actual = target.OperationTimeout;
  142. Assert.AreEqual(expected, actual);
  143. Assert.Inconclusive("Verify the correctness of this test method.");
  144. }
  145. /// <summary>
  146. ///A test for ClientCapabilities
  147. ///</summary>
  148. [TestMethod()]
  149. public void ClientCapabilitiesTest()
  150. {
  151. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  152. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  153. XmlDocument actual;
  154. actual = target.ClientCapabilities;
  155. Assert.Inconclusive("Verify the correctness of this test method.");
  156. }
  157. /// <summary>
  158. ///A test for AutomaticMessageIdHandling
  159. ///</summary>
  160. [TestMethod()]
  161. public void AutomaticMessageIdHandlingTest()
  162. {
  163. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  164. NetConfClient target = new NetConfClient(connectionInfo); // TODO: Initialize to an appropriate value
  165. bool expected = false; // TODO: Initialize to an appropriate value
  166. bool actual;
  167. target.AutomaticMessageIdHandling = expected;
  168. actual = target.AutomaticMessageIdHandling;
  169. Assert.AreEqual(expected, actual);
  170. Assert.Inconclusive("Verify the correctness of this test method.");
  171. }
  172. }
  173. }