SshDataTest.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. public class SshDataTest : TestBase
  13. {
  14. internal virtual SshData CreateSshData()
  15. {
  16. // TODO: Instantiate an appropriate concrete class.
  17. SshData target = null;
  18. return target;
  19. }
  20. /// <summary>
  21. ///A test for GetBytes
  22. ///</summary>
  23. [TestMethod()]
  24. public void GetBytesTest()
  25. {
  26. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  27. byte[] expected = null; // TODO: Initialize to an appropriate value
  28. byte[] actual;
  29. actual = target.GetBytes();
  30. Assert.AreEqual(expected, actual);
  31. Assert.Inconclusive("Verify the correctness of this test method.");
  32. }
  33. /// <summary>
  34. ///A test for Load
  35. ///</summary>
  36. [TestMethod()]
  37. public void LoadTest()
  38. {
  39. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  40. byte[] value = null; // TODO: Initialize to an appropriate value
  41. target.Load(value);
  42. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  43. }
  44. /// <summary>
  45. ///A test for IsEndOfData
  46. ///</summary>
  47. [TestMethod()]
  48. public void IsEndOfDataTest()
  49. {
  50. SshData target = CreateSshData(); // TODO: Initialize to an appropriate value
  51. bool actual;
  52. actual = target.IsEndOfData;
  53. Assert.Inconclusive("Verify the correctness of this test method.");
  54. }
  55. }
  56. }