MessageAttributeTest.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 MessageAttributeTest and is intended
  9. ///to contain all MessageAttributeTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. public class MessageAttributeTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for MessageAttribute Constructor
  16. ///</summary>
  17. [TestMethod()]
  18. public void MessageAttributeConstructorTest()
  19. {
  20. string name = string.Empty; // TODO: Initialize to an appropriate value
  21. byte number = 0; // TODO: Initialize to an appropriate value
  22. MessageAttribute target = new MessageAttribute(name, number);
  23. Assert.Inconclusive("TODO: Implement code to verify target");
  24. }
  25. /// <summary>
  26. ///A test for Name
  27. ///</summary>
  28. [TestMethod()]
  29. public void NameTest()
  30. {
  31. string name = string.Empty; // TODO: Initialize to an appropriate value
  32. byte number = 0; // TODO: Initialize to an appropriate value
  33. MessageAttribute target = new MessageAttribute(name, number); // TODO: Initialize to an appropriate value
  34. string expected = string.Empty; // TODO: Initialize to an appropriate value
  35. string actual;
  36. target.Name = expected;
  37. actual = target.Name;
  38. Assert.AreEqual(expected, actual);
  39. Assert.Inconclusive("Verify the correctness of this test method.");
  40. }
  41. /// <summary>
  42. ///A test for Number
  43. ///</summary>
  44. [TestMethod()]
  45. public void NumberTest()
  46. {
  47. string name = string.Empty; // TODO: Initialize to an appropriate value
  48. byte number = 0; // TODO: Initialize to an appropriate value
  49. MessageAttribute target = new MessageAttribute(name, number); // TODO: Initialize to an appropriate value
  50. byte expected = 0; // TODO: Initialize to an appropriate value
  51. byte actual;
  52. target.Number = expected;
  53. actual = target.Number;
  54. Assert.AreEqual(expected, actual);
  55. Assert.Inconclusive("Verify the correctness of this test method.");
  56. }
  57. }
  58. }