ForwardedPortDynamicTest.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Tests.Common;
  3. namespace Renci.SshNet.Tests.Classes
  4. {
  5. /// <summary>
  6. /// Provides functionality for dynamic port forwarding
  7. /// </summary>
  8. [TestClass]
  9. public partial class ForwardedPortDynamicTest : TestBase
  10. {
  11. /// <summary>
  12. ///A test for Stop
  13. ///</summary>
  14. [TestMethod()]
  15. public void StopTest()
  16. {
  17. uint port = 0; // TODO: Initialize to an appropriate value
  18. ForwardedPortDynamic target = new ForwardedPortDynamic(port); // TODO: Initialize to an appropriate value
  19. target.Stop();
  20. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  21. }
  22. /// <summary>
  23. ///A test for Start
  24. ///</summary>
  25. [TestMethod()]
  26. public void StartTest()
  27. {
  28. uint port = 0; // TODO: Initialize to an appropriate value
  29. ForwardedPortDynamic target = new ForwardedPortDynamic(port); // TODO: Initialize to an appropriate value
  30. target.Start();
  31. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  32. }
  33. /// <summary>
  34. ///A test for Dispose
  35. ///</summary>
  36. [TestMethod()]
  37. public void DisposeTest()
  38. {
  39. uint port = 0; // TODO: Initialize to an appropriate value
  40. ForwardedPortDynamic target = new ForwardedPortDynamic(port); // TODO: Initialize to an appropriate value
  41. target.Dispose();
  42. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  43. }
  44. /// <summary>
  45. ///A test for ForwardedPortDynamic Constructor
  46. ///</summary>
  47. [TestMethod()]
  48. public void ForwardedPortDynamicConstructorTest()
  49. {
  50. string host = string.Empty; // TODO: Initialize to an appropriate value
  51. uint port = 0; // TODO: Initialize to an appropriate value
  52. ForwardedPortDynamic target = new ForwardedPortDynamic(host, port);
  53. Assert.Inconclusive("TODO: Implement code to verify target");
  54. }
  55. /// <summary>
  56. ///A test for ForwardedPortDynamic Constructor
  57. ///</summary>
  58. [TestMethod()]
  59. public void ForwardedPortDynamicConstructorTest1()
  60. {
  61. uint port = 0; // TODO: Initialize to an appropriate value
  62. ForwardedPortDynamic target = new ForwardedPortDynamic(port);
  63. Assert.Inconclusive("TODO: Implement code to verify target");
  64. }
  65. }
  66. }