ShellStreamTest.cs 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Renci.SshNet.Common;
  3. using Renci.SshNet.Tests.Common;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.IO;
  7. using System.Text.RegularExpressions;
  8. namespace Renci.SshNet.Tests.Classes
  9. {
  10. /// <summary>
  11. /// Contains operation for working with SSH Shell.
  12. /// </summary>
  13. [TestClass]
  14. public class ShellStreamTest : TestBase
  15. {
  16. /// <summary>
  17. ///A test for BeginExpect
  18. ///</summary>
  19. [TestMethod()]
  20. public void BeginExpectTest()
  21. {
  22. Session session = null; // TODO: Initialize to an appropriate value
  23. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  24. uint columns = 0; // TODO: Initialize to an appropriate value
  25. uint rows = 0; // TODO: Initialize to an appropriate value
  26. uint width = 0; // TODO: Initialize to an appropriate value
  27. uint height = 0; // TODO: Initialize to an appropriate value
  28. int maxLines = 0; // TODO: Initialize to an appropriate value
  29. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  30. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  31. TimeSpan timeout = new TimeSpan(); // TODO: Initialize to an appropriate value
  32. AsyncCallback callback = null; // TODO: Initialize to an appropriate value
  33. object state = null; // TODO: Initialize to an appropriate value
  34. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  35. IAsyncResult expected = null; // TODO: Initialize to an appropriate value
  36. IAsyncResult actual;
  37. actual = target.BeginExpect(timeout, callback, state, expectActions);
  38. Assert.AreEqual(expected, actual);
  39. Assert.Inconclusive("Verify the correctness of this test method.");
  40. }
  41. /// <summary>
  42. ///A test for BeginExpect
  43. ///</summary>
  44. [TestMethod()]
  45. public void BeginExpectTest1()
  46. {
  47. Session session = null; // TODO: Initialize to an appropriate value
  48. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  49. uint columns = 0; // TODO: Initialize to an appropriate value
  50. uint rows = 0; // TODO: Initialize to an appropriate value
  51. uint width = 0; // TODO: Initialize to an appropriate value
  52. uint height = 0; // TODO: Initialize to an appropriate value
  53. int maxLines = 0; // TODO: Initialize to an appropriate value
  54. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  55. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  56. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  57. IAsyncResult expected = null; // TODO: Initialize to an appropriate value
  58. IAsyncResult actual;
  59. actual = target.BeginExpect(expectActions);
  60. Assert.AreEqual(expected, actual);
  61. Assert.Inconclusive("Verify the correctness of this test method.");
  62. }
  63. /// <summary>
  64. ///A test for BeginExpect
  65. ///</summary>
  66. [TestMethod()]
  67. public void BeginExpectTest2()
  68. {
  69. Session session = null; // TODO: Initialize to an appropriate value
  70. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  71. uint columns = 0; // TODO: Initialize to an appropriate value
  72. uint rows = 0; // TODO: Initialize to an appropriate value
  73. uint width = 0; // TODO: Initialize to an appropriate value
  74. uint height = 0; // TODO: Initialize to an appropriate value
  75. int maxLines = 0; // TODO: Initialize to an appropriate value
  76. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  77. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  78. AsyncCallback callback = null; // TODO: Initialize to an appropriate value
  79. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  80. IAsyncResult expected = null; // TODO: Initialize to an appropriate value
  81. IAsyncResult actual;
  82. actual = target.BeginExpect(callback, expectActions);
  83. Assert.AreEqual(expected, actual);
  84. Assert.Inconclusive("Verify the correctness of this test method.");
  85. }
  86. /// <summary>
  87. ///A test for BeginExpect
  88. ///</summary>
  89. [TestMethod()]
  90. public void BeginExpectTest3()
  91. {
  92. Session session = null; // TODO: Initialize to an appropriate value
  93. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  94. uint columns = 0; // TODO: Initialize to an appropriate value
  95. uint rows = 0; // TODO: Initialize to an appropriate value
  96. uint width = 0; // TODO: Initialize to an appropriate value
  97. uint height = 0; // TODO: Initialize to an appropriate value
  98. int maxLines = 0; // TODO: Initialize to an appropriate value
  99. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  100. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  101. AsyncCallback callback = null; // TODO: Initialize to an appropriate value
  102. object state = null; // TODO: Initialize to an appropriate value
  103. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  104. IAsyncResult expected = null; // TODO: Initialize to an appropriate value
  105. IAsyncResult actual;
  106. actual = target.BeginExpect(callback, state, expectActions);
  107. Assert.AreEqual(expected, actual);
  108. Assert.Inconclusive("Verify the correctness of this test method.");
  109. }
  110. /// <summary>
  111. ///A test for EndExpect
  112. ///</summary>
  113. [TestMethod()]
  114. public void EndExpectTest()
  115. {
  116. Session session = null; // TODO: Initialize to an appropriate value
  117. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  118. uint columns = 0; // TODO: Initialize to an appropriate value
  119. uint rows = 0; // TODO: Initialize to an appropriate value
  120. uint width = 0; // TODO: Initialize to an appropriate value
  121. uint height = 0; // TODO: Initialize to an appropriate value
  122. int maxLines = 0; // TODO: Initialize to an appropriate value
  123. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  124. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  125. IAsyncResult asyncResult = null; // TODO: Initialize to an appropriate value
  126. target.EndExpect(asyncResult);
  127. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  128. }
  129. /// <summary>
  130. ///A test for Expect
  131. ///</summary>
  132. [TestMethod()]
  133. public void ExpectTest()
  134. {
  135. Session session = null; // TODO: Initialize to an appropriate value
  136. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  137. uint columns = 0; // TODO: Initialize to an appropriate value
  138. uint rows = 0; // TODO: Initialize to an appropriate value
  139. uint width = 0; // TODO: Initialize to an appropriate value
  140. uint height = 0; // TODO: Initialize to an appropriate value
  141. int maxLines = 0; // TODO: Initialize to an appropriate value
  142. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  143. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  144. Regex regex = null; // TODO: Initialize to an appropriate value
  145. TimeSpan timeout = new TimeSpan(); // TODO: Initialize to an appropriate value
  146. string expected = string.Empty; // TODO: Initialize to an appropriate value
  147. string actual;
  148. actual = target.Expect(regex, timeout);
  149. Assert.AreEqual(expected, actual);
  150. Assert.Inconclusive("Verify the correctness of this test method.");
  151. }
  152. /// <summary>
  153. ///A test for Expect
  154. ///</summary>
  155. [TestMethod()]
  156. public void ExpectTest1()
  157. {
  158. Session session = null; // TODO: Initialize to an appropriate value
  159. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  160. uint columns = 0; // TODO: Initialize to an appropriate value
  161. uint rows = 0; // TODO: Initialize to an appropriate value
  162. uint width = 0; // TODO: Initialize to an appropriate value
  163. uint height = 0; // TODO: Initialize to an appropriate value
  164. int maxLines = 0; // TODO: Initialize to an appropriate value
  165. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  166. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  167. Regex regex = null; // TODO: Initialize to an appropriate value
  168. string expected = string.Empty; // TODO: Initialize to an appropriate value
  169. string actual;
  170. actual = target.Expect(regex);
  171. Assert.AreEqual(expected, actual);
  172. Assert.Inconclusive("Verify the correctness of this test method.");
  173. }
  174. /// <summary>
  175. ///A test for Expect
  176. ///</summary>
  177. [TestMethod()]
  178. public void ExpectTest2()
  179. {
  180. Session session = null; // TODO: Initialize to an appropriate value
  181. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  182. uint columns = 0; // TODO: Initialize to an appropriate value
  183. uint rows = 0; // TODO: Initialize to an appropriate value
  184. uint width = 0; // TODO: Initialize to an appropriate value
  185. uint height = 0; // TODO: Initialize to an appropriate value
  186. int maxLines = 0; // TODO: Initialize to an appropriate value
  187. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  188. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  189. string text = string.Empty; // TODO: Initialize to an appropriate value
  190. TimeSpan timeout = new TimeSpan(); // TODO: Initialize to an appropriate value
  191. string expected = string.Empty; // TODO: Initialize to an appropriate value
  192. string actual;
  193. actual = target.Expect(text, timeout);
  194. Assert.AreEqual(expected, actual);
  195. Assert.Inconclusive("Verify the correctness of this test method.");
  196. }
  197. /// <summary>
  198. ///A test for Expect
  199. ///</summary>
  200. [TestMethod()]
  201. public void ExpectTest3()
  202. {
  203. Session session = null; // TODO: Initialize to an appropriate value
  204. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  205. uint columns = 0; // TODO: Initialize to an appropriate value
  206. uint rows = 0; // TODO: Initialize to an appropriate value
  207. uint width = 0; // TODO: Initialize to an appropriate value
  208. uint height = 0; // TODO: Initialize to an appropriate value
  209. int maxLines = 0; // TODO: Initialize to an appropriate value
  210. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  211. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  212. string text = string.Empty; // TODO: Initialize to an appropriate value
  213. string expected = string.Empty; // TODO: Initialize to an appropriate value
  214. string actual;
  215. actual = target.Expect(text);
  216. Assert.AreEqual(expected, actual);
  217. Assert.Inconclusive("Verify the correctness of this test method.");
  218. }
  219. /// <summary>
  220. ///A test for Expect
  221. ///</summary>
  222. [TestMethod()]
  223. public void ExpectTest4()
  224. {
  225. Session session = null; // TODO: Initialize to an appropriate value
  226. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  227. uint columns = 0; // TODO: Initialize to an appropriate value
  228. uint rows = 0; // TODO: Initialize to an appropriate value
  229. uint width = 0; // TODO: Initialize to an appropriate value
  230. uint height = 0; // TODO: Initialize to an appropriate value
  231. int maxLines = 0; // TODO: Initialize to an appropriate value
  232. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  233. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  234. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  235. target.Expect(expectActions);
  236. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  237. }
  238. /// <summary>
  239. ///A test for Expect
  240. ///</summary>
  241. [TestMethod()]
  242. public void ExpectTest5()
  243. {
  244. Session session = null; // TODO: Initialize to an appropriate value
  245. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  246. uint columns = 0; // TODO: Initialize to an appropriate value
  247. uint rows = 0; // TODO: Initialize to an appropriate value
  248. uint width = 0; // TODO: Initialize to an appropriate value
  249. uint height = 0; // TODO: Initialize to an appropriate value
  250. int maxLines = 0; // TODO: Initialize to an appropriate value
  251. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  252. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  253. TimeSpan timeout = new TimeSpan(); // TODO: Initialize to an appropriate value
  254. ExpectAction[] expectActions = null; // TODO: Initialize to an appropriate value
  255. target.Expect(timeout, expectActions);
  256. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  257. }
  258. /// <summary>
  259. ///A test for Flush
  260. ///</summary>
  261. [TestMethod()]
  262. public void FlushTest()
  263. {
  264. Session session = null; // TODO: Initialize to an appropriate value
  265. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  266. uint columns = 0; // TODO: Initialize to an appropriate value
  267. uint rows = 0; // TODO: Initialize to an appropriate value
  268. uint width = 0; // TODO: Initialize to an appropriate value
  269. uint height = 0; // TODO: Initialize to an appropriate value
  270. int maxLines = 0; // TODO: Initialize to an appropriate value
  271. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  272. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  273. target.Flush();
  274. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  275. }
  276. /// <summary>
  277. ///A test for Read
  278. ///</summary>
  279. [TestMethod()]
  280. public void ReadTest()
  281. {
  282. Session session = null; // TODO: Initialize to an appropriate value
  283. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  284. uint columns = 0; // TODO: Initialize to an appropriate value
  285. uint rows = 0; // TODO: Initialize to an appropriate value
  286. uint width = 0; // TODO: Initialize to an appropriate value
  287. uint height = 0; // TODO: Initialize to an appropriate value
  288. int maxLines = 0; // TODO: Initialize to an appropriate value
  289. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  290. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  291. byte[] buffer = null; // TODO: Initialize to an appropriate value
  292. int offset = 0; // TODO: Initialize to an appropriate value
  293. int count = 0; // TODO: Initialize to an appropriate value
  294. int expected = 0; // TODO: Initialize to an appropriate value
  295. int actual;
  296. actual = target.Read(buffer, offset, count);
  297. Assert.AreEqual(expected, actual);
  298. Assert.Inconclusive("Verify the correctness of this test method.");
  299. }
  300. /// <summary>
  301. ///A test for Read
  302. ///</summary>
  303. [TestMethod()]
  304. public void ReadTest1()
  305. {
  306. Session session = null; // TODO: Initialize to an appropriate value
  307. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  308. uint columns = 0; // TODO: Initialize to an appropriate value
  309. uint rows = 0; // TODO: Initialize to an appropriate value
  310. uint width = 0; // TODO: Initialize to an appropriate value
  311. uint height = 0; // TODO: Initialize to an appropriate value
  312. int maxLines = 0; // TODO: Initialize to an appropriate value
  313. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  314. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  315. string expected = string.Empty; // TODO: Initialize to an appropriate value
  316. string actual;
  317. actual = target.Read();
  318. Assert.AreEqual(expected, actual);
  319. Assert.Inconclusive("Verify the correctness of this test method.");
  320. }
  321. /// <summary>
  322. ///A test for ReadLine
  323. ///</summary>
  324. [TestMethod()]
  325. public void ReadLineTest()
  326. {
  327. Session session = null; // TODO: Initialize to an appropriate value
  328. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  329. uint columns = 0; // TODO: Initialize to an appropriate value
  330. uint rows = 0; // TODO: Initialize to an appropriate value
  331. uint width = 0; // TODO: Initialize to an appropriate value
  332. uint height = 0; // TODO: Initialize to an appropriate value
  333. int maxLines = 0; // TODO: Initialize to an appropriate value
  334. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  335. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  336. string expected = string.Empty; // TODO: Initialize to an appropriate value
  337. string actual;
  338. actual = target.ReadLine();
  339. Assert.AreEqual(expected, actual);
  340. Assert.Inconclusive("Verify the correctness of this test method.");
  341. }
  342. /// <summary>
  343. ///A test for ReadLine
  344. ///</summary>
  345. [TestMethod()]
  346. public void ReadLineTest1()
  347. {
  348. Session session = null; // TODO: Initialize to an appropriate value
  349. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  350. uint columns = 0; // TODO: Initialize to an appropriate value
  351. uint rows = 0; // TODO: Initialize to an appropriate value
  352. uint width = 0; // TODO: Initialize to an appropriate value
  353. uint height = 0; // TODO: Initialize to an appropriate value
  354. int maxLines = 0; // TODO: Initialize to an appropriate value
  355. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  356. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  357. TimeSpan timeout = new TimeSpan(); // TODO: Initialize to an appropriate value
  358. string expected = string.Empty; // TODO: Initialize to an appropriate value
  359. string actual;
  360. actual = target.ReadLine(timeout);
  361. Assert.AreEqual(expected, actual);
  362. Assert.Inconclusive("Verify the correctness of this test method.");
  363. }
  364. /// <summary>
  365. ///A test for Seek
  366. ///</summary>
  367. [TestMethod()]
  368. public void SeekTest()
  369. {
  370. Session session = null; // TODO: Initialize to an appropriate value
  371. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  372. uint columns = 0; // TODO: Initialize to an appropriate value
  373. uint rows = 0; // TODO: Initialize to an appropriate value
  374. uint width = 0; // TODO: Initialize to an appropriate value
  375. uint height = 0; // TODO: Initialize to an appropriate value
  376. int maxLines = 0; // TODO: Initialize to an appropriate value
  377. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  378. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  379. long offset = 0; // TODO: Initialize to an appropriate value
  380. SeekOrigin origin = new SeekOrigin(); // TODO: Initialize to an appropriate value
  381. long expected = 0; // TODO: Initialize to an appropriate value
  382. long actual;
  383. actual = target.Seek(offset, origin);
  384. Assert.AreEqual(expected, actual);
  385. Assert.Inconclusive("Verify the correctness of this test method.");
  386. }
  387. /// <summary>
  388. ///A test for SetLength
  389. ///</summary>
  390. [TestMethod()]
  391. public void SetLengthTest()
  392. {
  393. Session session = null; // TODO: Initialize to an appropriate value
  394. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  395. uint columns = 0; // TODO: Initialize to an appropriate value
  396. uint rows = 0; // TODO: Initialize to an appropriate value
  397. uint width = 0; // TODO: Initialize to an appropriate value
  398. uint height = 0; // TODO: Initialize to an appropriate value
  399. int maxLines = 0; // TODO: Initialize to an appropriate value
  400. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  401. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  402. long value = 0; // TODO: Initialize to an appropriate value
  403. target.SetLength(value);
  404. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  405. }
  406. /// <summary>
  407. ///A test for Write
  408. ///</summary>
  409. [TestMethod()]
  410. public void WriteTest()
  411. {
  412. Session session = null; // TODO: Initialize to an appropriate value
  413. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  414. uint columns = 0; // TODO: Initialize to an appropriate value
  415. uint rows = 0; // TODO: Initialize to an appropriate value
  416. uint width = 0; // TODO: Initialize to an appropriate value
  417. uint height = 0; // TODO: Initialize to an appropriate value
  418. int maxLines = 0; // TODO: Initialize to an appropriate value
  419. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  420. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  421. byte[] buffer = null; // TODO: Initialize to an appropriate value
  422. int offset = 0; // TODO: Initialize to an appropriate value
  423. int count = 0; // TODO: Initialize to an appropriate value
  424. target.Write(buffer, offset, count);
  425. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  426. }
  427. /// <summary>
  428. ///A test for Write
  429. ///</summary>
  430. [TestMethod()]
  431. public void WriteTest1()
  432. {
  433. Session session = null; // TODO: Initialize to an appropriate value
  434. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  435. uint columns = 0; // TODO: Initialize to an appropriate value
  436. uint rows = 0; // TODO: Initialize to an appropriate value
  437. uint width = 0; // TODO: Initialize to an appropriate value
  438. uint height = 0; // TODO: Initialize to an appropriate value
  439. int maxLines = 0; // TODO: Initialize to an appropriate value
  440. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  441. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  442. string text = string.Empty; // TODO: Initialize to an appropriate value
  443. target.Write(text);
  444. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  445. }
  446. /// <summary>
  447. ///A test for WriteLine
  448. ///</summary>
  449. [TestMethod()]
  450. public void WriteLineTest()
  451. {
  452. Session session = null; // TODO: Initialize to an appropriate value
  453. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  454. uint columns = 0; // TODO: Initialize to an appropriate value
  455. uint rows = 0; // TODO: Initialize to an appropriate value
  456. uint width = 0; // TODO: Initialize to an appropriate value
  457. uint height = 0; // TODO: Initialize to an appropriate value
  458. int maxLines = 0; // TODO: Initialize to an appropriate value
  459. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  460. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  461. string line = string.Empty; // TODO: Initialize to an appropriate value
  462. target.WriteLine(line);
  463. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  464. }
  465. /// <summary>
  466. ///A test for CanRead
  467. ///</summary>
  468. [TestMethod()]
  469. public void CanReadTest()
  470. {
  471. Session session = null; // TODO: Initialize to an appropriate value
  472. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  473. uint columns = 0; // TODO: Initialize to an appropriate value
  474. uint rows = 0; // TODO: Initialize to an appropriate value
  475. uint width = 0; // TODO: Initialize to an appropriate value
  476. uint height = 0; // TODO: Initialize to an appropriate value
  477. int maxLines = 0; // TODO: Initialize to an appropriate value
  478. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  479. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  480. bool actual;
  481. actual = target.CanRead;
  482. Assert.Inconclusive("Verify the correctness of this test method.");
  483. }
  484. /// <summary>
  485. ///A test for CanSeek
  486. ///</summary>
  487. [TestMethod()]
  488. public void CanSeekTest()
  489. {
  490. Session session = null; // TODO: Initialize to an appropriate value
  491. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  492. uint columns = 0; // TODO: Initialize to an appropriate value
  493. uint rows = 0; // TODO: Initialize to an appropriate value
  494. uint width = 0; // TODO: Initialize to an appropriate value
  495. uint height = 0; // TODO: Initialize to an appropriate value
  496. int maxLines = 0; // TODO: Initialize to an appropriate value
  497. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  498. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  499. bool actual;
  500. actual = target.CanSeek;
  501. Assert.Inconclusive("Verify the correctness of this test method.");
  502. }
  503. /// <summary>
  504. ///A test for CanWrite
  505. ///</summary>
  506. [TestMethod()]
  507. public void CanWriteTest()
  508. {
  509. Session session = null; // TODO: Initialize to an appropriate value
  510. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  511. uint columns = 0; // TODO: Initialize to an appropriate value
  512. uint rows = 0; // TODO: Initialize to an appropriate value
  513. uint width = 0; // TODO: Initialize to an appropriate value
  514. uint height = 0; // TODO: Initialize to an appropriate value
  515. int maxLines = 0; // TODO: Initialize to an appropriate value
  516. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  517. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  518. bool actual;
  519. actual = target.CanWrite;
  520. Assert.Inconclusive("Verify the correctness of this test method.");
  521. }
  522. /// <summary>
  523. ///A test for DataAvailable
  524. ///</summary>
  525. [TestMethod()]
  526. public void DataAvailableTest()
  527. {
  528. Session session = null; // TODO: Initialize to an appropriate value
  529. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  530. uint columns = 0; // TODO: Initialize to an appropriate value
  531. uint rows = 0; // TODO: Initialize to an appropriate value
  532. uint width = 0; // TODO: Initialize to an appropriate value
  533. uint height = 0; // TODO: Initialize to an appropriate value
  534. int maxLines = 0; // TODO: Initialize to an appropriate value
  535. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  536. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  537. bool actual;
  538. actual = target.DataAvailable;
  539. Assert.Inconclusive("Verify the correctness of this test method.");
  540. }
  541. /// <summary>
  542. ///A test for Length
  543. ///</summary>
  544. [TestMethod()]
  545. public void LengthTest()
  546. {
  547. Session session = null; // TODO: Initialize to an appropriate value
  548. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  549. uint columns = 0; // TODO: Initialize to an appropriate value
  550. uint rows = 0; // TODO: Initialize to an appropriate value
  551. uint width = 0; // TODO: Initialize to an appropriate value
  552. uint height = 0; // TODO: Initialize to an appropriate value
  553. int maxLines = 0; // TODO: Initialize to an appropriate value
  554. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  555. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  556. long actual;
  557. actual = target.Length;
  558. Assert.Inconclusive("Verify the correctness of this test method.");
  559. }
  560. /// <summary>
  561. ///A test for Position
  562. ///</summary>
  563. [TestMethod()]
  564. public void PositionTest()
  565. {
  566. Session session = null; // TODO: Initialize to an appropriate value
  567. string terminalName = string.Empty; // TODO: Initialize to an appropriate value
  568. uint columns = 0; // TODO: Initialize to an appropriate value
  569. uint rows = 0; // TODO: Initialize to an appropriate value
  570. uint width = 0; // TODO: Initialize to an appropriate value
  571. uint height = 0; // TODO: Initialize to an appropriate value
  572. int maxLines = 0; // TODO: Initialize to an appropriate value
  573. IDictionary<TerminalModes, uint> terminalModeValues = null; // TODO: Initialize to an appropriate value
  574. ShellStream target = new ShellStream(session, terminalName, columns, rows, width, height, maxLines, terminalModeValues); // TODO: Initialize to an appropriate value
  575. long expected = 0; // TODO: Initialize to an appropriate value
  576. long actual;
  577. target.Position = expected;
  578. actual = target.Position;
  579. Assert.AreEqual(expected, actual);
  580. Assert.Inconclusive("Verify the correctness of this test method.");
  581. }
  582. }
  583. }