2
0

ShellTestTest.cs 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. [Ignore] // class contains just for unit tests
  13. public partial class ShellTestTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for Dispose
  17. ///</summary>
  18. [TestMethod()]
  19. public void DisposeTest()
  20. {
  21. Session session = null; // TODO: Initialize to an appropriate value
  22. Stream input = null; // TODO: Initialize to an appropriate value
  23. Stream output = null; // TODO: Initialize to an appropriate value
  24. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  25. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  26. uint columns = 0; // TODO: Initialize to an appropriate value
  27. uint rows = 0; // TODO: Initialize to an appropriate value
  28. uint width = 0; // TODO: Initialize to an appropriate value
  29. uint height = 0; // TODO: Initialize to an appropriate value
  30. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  31. int bufferSize = 0; // TODO: Initialize to an appropriate value
  32. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  33. target.Dispose();
  34. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  35. }
  36. /// <summary>
  37. ///A test for Start
  38. ///</summary>
  39. [TestMethod()]
  40. public void StartTest()
  41. {
  42. Session session = null; // TODO: Initialize to an appropriate value
  43. Stream input = null; // TODO: Initialize to an appropriate value
  44. Stream output = null; // TODO: Initialize to an appropriate value
  45. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  46. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  47. uint columns = 0; // TODO: Initialize to an appropriate value
  48. uint rows = 0; // TODO: Initialize to an appropriate value
  49. uint width = 0; // TODO: Initialize to an appropriate value
  50. uint height = 0; // TODO: Initialize to an appropriate value
  51. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  52. int bufferSize = 0; // TODO: Initialize to an appropriate value
  53. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  54. target.Start();
  55. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  56. }
  57. /// <summary>
  58. ///A test for Stop
  59. ///</summary>
  60. [TestMethod()]
  61. public void StopTest()
  62. {
  63. Session session = null; // TODO: Initialize to an appropriate value
  64. Stream input = null; // TODO: Initialize to an appropriate value
  65. Stream output = null; // TODO: Initialize to an appropriate value
  66. Stream extendedOutput = null; // TODO: Initialize to an appropriate value
  67. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  68. uint columns = 0; // TODO: Initialize to an appropriate value
  69. uint rows = 0; // TODO: Initialize to an appropriate value
  70. uint width = 0; // TODO: Initialize to an appropriate value
  71. uint height = 0; // TODO: Initialize to an appropriate value
  72. IDictionary<TerminalModes, uint> terminalModes = null; // TODO: Initialize to an appropriate value
  73. int bufferSize = 0; // TODO: Initialize to an appropriate value
  74. Shell target = new Shell(session, input, output, extendedOutput, terminalName, columns, rows, width, height, terminalModes, bufferSize); // TODO: Initialize to an appropriate value
  75. target.Stop();
  76. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  77. }
  78. }
  79. }