2
0

SessionTest.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Common;
  3. using Renci.SshNet.Messages;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes
  6. {
  7. /// <summary>
  8. /// Provides functionality to connect and interact with SSH server.
  9. /// </summary>
  10. [TestClass]
  11. public partial class SessionTest : TestBase
  12. {
  13. /// <summary>
  14. ///A test for SessionSemaphore
  15. ///</summary>
  16. [TestMethod()]
  17. public void SessionSemaphoreTest()
  18. {
  19. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  20. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  21. SemaphoreLight actual;
  22. actual = target.SessionSemaphore;
  23. Assert.Inconclusive("Verify the correctness of this test method.");
  24. }
  25. /// <summary>
  26. ///A test for IsConnected
  27. ///</summary>
  28. [TestMethod()]
  29. public void IsConnectedTest()
  30. {
  31. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  32. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  33. bool actual;
  34. actual = target.IsConnected;
  35. Assert.Inconclusive("Verify the correctness of this test method.");
  36. }
  37. /// <summary>
  38. ///A test for ClientInitMessage
  39. ///</summary>
  40. [TestMethod()]
  41. public void ClientInitMessageTest()
  42. {
  43. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  44. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  45. Message actual;
  46. actual = target.ClientInitMessage;
  47. Assert.Inconclusive("Verify the correctness of this test method.");
  48. }
  49. /// <summary>
  50. ///A test for UnRegisterMessage
  51. ///</summary>
  52. [TestMethod()]
  53. public void UnRegisterMessageTest()
  54. {
  55. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  56. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  57. string messageName = string.Empty; // TODO: Initialize to an appropriate value
  58. target.UnRegisterMessage(messageName);
  59. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  60. }
  61. /// <summary>
  62. ///A test for RegisterMessage
  63. ///</summary>
  64. [TestMethod()]
  65. public void RegisterMessageTest()
  66. {
  67. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  68. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  69. string messageName = string.Empty; // TODO: Initialize to an appropriate value
  70. target.RegisterMessage(messageName);
  71. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  72. }
  73. /// <summary>
  74. ///A test for Dispose
  75. ///</summary>
  76. [TestMethod()]
  77. public void DisposeTest()
  78. {
  79. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  80. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  81. target.Dispose();
  82. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  83. }
  84. /// <summary>
  85. ///A test for Disconnect
  86. ///</summary>
  87. [TestMethod()]
  88. public void DisconnectTest()
  89. {
  90. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  91. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  92. target.Disconnect();
  93. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  94. }
  95. /// <summary>
  96. ///A test for Connect
  97. ///</summary>
  98. [TestMethod()]
  99. public void ConnectTest()
  100. {
  101. ConnectionInfo connectionInfo = null; // TODO: Initialize to an appropriate value
  102. Session target = new Session(connectionInfo); // TODO: Initialize to an appropriate value
  103. target.Connect();
  104. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  105. }
  106. }
  107. }