ShellTestTest.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Common;
  3. using Renci.SshNet.Tests.Common;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. namespace Renci.SshNet.Tests.Classes
  7. {
  8. /// <summary>
  9. /// Represents instance of the SSH shell object
  10. /// </summary>
  11. [TestClass]
  12. public partial class ShellTestTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for Dispose
  16. ///</summary>
  17. [TestMethod()]
  18. public void DisposeTest()
  19. {
  20. Session session = null; // TODO: Initialize to an appropriate value
  21. Stream input = null; // TODO: Initialize to an appropriate value
  22. Stream output = null; // TODO: Initialize to an appropriate value
  23. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  24. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  25. uint columns = 0; // TODO: Initialize to an appropriate value
  26. uint rows = 0; // TODO: Initialize to an appropriate value
  27. uint width = 0; // TODO: Initialize to an appropriate value
  28. uint height = 0; // TODO: Initialize to an appropriate value
  29. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  30. int bufferSize = 0; // TODO: Initialize to an appropriate value
  31. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  32. target.Dispose();
  33. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  34. }
  35. /// <summary>
  36. ///A test for Start
  37. ///</summary>
  38. [TestMethod()]
  39. public void StartTest()
  40. {
  41. Session session = null; // TODO: Initialize to an appropriate value
  42. Stream input = null; // TODO: Initialize to an appropriate value
  43. Stream output = null; // TODO: Initialize to an appropriate value
  44. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  45. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  46. uint columns = 0; // TODO: Initialize to an appropriate value
  47. uint rows = 0; // TODO: Initialize to an appropriate value
  48. uint width = 0; // TODO: Initialize to an appropriate value
  49. uint height = 0; // TODO: Initialize to an appropriate value
  50. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  51. int bufferSize = 0; // TODO: Initialize to an appropriate value
  52. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  53. target.Start();
  54. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  55. }
  56. /// <summary>
  57. ///A test for Stop
  58. ///</summary>
  59. [TestMethod()]
  60. public void StopTest()
  61. {
  62. Session session = null; // TODO: Initialize to an appropriate value
  63. Stream input = null; // TODO: Initialize to an appropriate value
  64. Stream output = null; // TODO: Initialize to an appropriate value
  65. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  66. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  67. uint columns = 0; // TODO: Initialize to an appropriate value
  68. uint rows = 0; // TODO: Initialize to an appropriate value
  69. uint width = 0; // TODO: Initialize to an appropriate value
  70. uint height = 0; // TODO: Initialize to an appropriate value
  71. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  72. int bufferSize = 0; // TODO: Initialize to an appropriate value
  73. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  74. target.Stop();
  75. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  76. }
  77. }
  78. }