CommandAsyncResultTest.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Renci.SshNet;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests
  6. {
  7. /// <summary>
  8. ///This is a test class for CommandAsyncResultTest and is intended
  9. ///to contain all CommandAsyncResultTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. public class CommandAsyncResultTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for BytesSent
  16. ///</summary>
  17. [TestMethod()]
  18. public void BytesSentTest()
  19. {
  20. CommandAsyncResult target = new CommandAsyncResult(); // TODO: Initialize to an appropriate value
  21. int expected = 0; // TODO: Initialize to an appropriate value
  22. int actual;
  23. target.BytesSent = expected;
  24. actual = target.BytesSent;
  25. Assert.AreEqual(expected, actual);
  26. Assert.Inconclusive("Verify the correctness of this test method.");
  27. }
  28. /// <summary>
  29. ///A test for BytesReceived
  30. ///</summary>
  31. [TestMethod()]
  32. public void BytesReceivedTest()
  33. {
  34. CommandAsyncResult target = new CommandAsyncResult(); // TODO: Initialize to an appropriate value
  35. int expected = 0; // TODO: Initialize to an appropriate value
  36. int actual;
  37. target.BytesReceived = expected;
  38. actual = target.BytesReceived;
  39. Assert.AreEqual(expected, actual);
  40. Assert.Inconclusive("Verify the correctness of this test method.");
  41. }
  42. }
  43. }