SshDataTest.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Renci.SshNet.Common;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Common
  6. {
  7. /// <summary>
  8. ///This is a test class for SshDataTest and is intended
  9. ///to contain all SshDataTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. [Ignore] // placeholder for actual test
  13. public class SshDataTest : TestBase
  14. {
  15. internal virtual SshData CreateSshData()
  16. {
  17. // TODO: Instantiate an appropriate concrete class.
  18. SshData target = null;
  19. return target;
  20. }
  21. /// <summary>
  22. ///A test for GetBytes
  23. ///</summary>
  24. [TestMethod()]
  25. public void GetBytesTest()
  26. {
  27. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  28. byte[] expected = null; // TODO: Initialize to an appropriate value
  29. byte[] actual;
  30. actual = target.GetBytes();
  31. Assert.AreEqual(expected, actual);
  32. Assert.Inconclusive("Verify the correctness of this test method.");
  33. }
  34. /// <summary>
  35. ///A test for Load
  36. ///</summary>
  37. [TestMethod()]
  38. public void LoadTest()
  39. {
  40. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  41. byte[] value = null; // TODO: Initialize to an appropriate value
  42. target.Load(value);
  43. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  44. }
  45. /// <summary>
  46. ///A test for IsEndOfData
  47. ///</summary>
  48. [TestMethod()]
  49. public void IsEndOfDataTest()
  50. {
  51. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  52. bool actual;
  53. actual = target.IsEndOfData;
  54. Assert.Inconclusive("Verify the correctness of this test method.");
  55. }
  56. }
  57. }