BaseClientTest.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using Renci.SshNet;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests
  6. {
  7. /// <summary>
  8. ///This is a test class for BaseClientTest and is intended
  9. ///to contain all BaseClientTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. public class BaseClientTest : TestBase
  13. {
  14. internal virtual BaseClient CreateBaseClient()
  15. {
  16. // TODO: Instantiate an appropriate concrete class.
  17. BaseClient target = null;
  18. return target;
  19. }
  20. /// <summary>
  21. ///A test for KeepAliveInterval
  22. ///</summary>
  23. [TestMethod()]
  24. public void KeepAliveIntervalTest()
  25. {
  26. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  27. TimeSpan expected = new TimeSpan(); // TODO: Initialize to an appropriate value
  28. TimeSpan actual;
  29. target.KeepAliveInterval = expected;
  30. actual = target.KeepAliveInterval;
  31. Assert.AreEqual(expected, actual);
  32. Assert.Inconclusive("Verify the correctness of this test method.");
  33. }
  34. /// <summary>
  35. ///A test for IsConnected
  36. ///</summary>
  37. [TestMethod()]
  38. public void IsConnectedTest()
  39. {
  40. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  41. bool actual;
  42. actual = target.IsConnected;
  43. Assert.Inconclusive("Verify the correctness of this test method.");
  44. }
  45. /// <summary>
  46. ///A test for SendKeepAlive
  47. ///</summary>
  48. [TestMethod()]
  49. public void SendKeepAliveTest()
  50. {
  51. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  52. target.SendKeepAlive();
  53. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  54. }
  55. /// <summary>
  56. ///A test for Dispose
  57. ///</summary>
  58. [TestMethod()]
  59. public void DisposeTest()
  60. {
  61. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  62. target.Dispose();
  63. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  64. }
  65. /// <summary>
  66. ///A test for Disconnect
  67. ///</summary>
  68. [TestMethod()]
  69. public void DisconnectTest()
  70. {
  71. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  72. target.Disconnect();
  73. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  74. }
  75. /// <summary>
  76. ///A test for Connect
  77. ///</summary>
  78. [TestMethod()]
  79. public void ConnectTest()
  80. {
  81. BaseClient target = CreateBaseClient(); // TODO: Initialize to an appropriate value
  82. target.Connect();
  83. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  84. }
  85. }
  86. }