2
0

MessageTest.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Renci.SshNet.Messages;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Messages
  6. {
  7. /// <summary>
  8. ///This is a test class for MessageTest and is intended
  9. ///to contain all MessageTest Unit Tests
  10. ///</summary>
  11. [TestClass]
  12. [Ignore] // placeholders only
  13. public class MessageTest : TestBase
  14. {
  15. internal virtual Message CreateMessage()
  16. {
  17. // TODO: Instantiate an appropriate concrete class.
  18. Message target = null;
  19. return target;
  20. }
  21. /// <summary>
  22. ///A test for GetBytes
  23. ///</summary>
  24. [TestMethod()]
  25. public void GetBytesTest()
  26. {
  27. Message target = CreateMessage(); // 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 ToString
  36. ///</summary>
  37. [TestMethod()]
  38. public void ToStringTest()
  39. {
  40. Message target = CreateMessage(); // TODO: Initialize to an appropriate value
  41. string expected = string.Empty; // TODO: Initialize to an appropriate value
  42. string actual;
  43. actual = target.ToString();
  44. Assert.AreEqual(expected, actual);
  45. Assert.Inconclusive("Verify the correctness of this test method.");
  46. }
  47. }
  48. }