CommandAsyncResultTest.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. SshCommand command = null; // TODO: Initialize to an appropriate value
  21. CommandAsyncResult target = new CommandAsyncResult(command); // TODO: Initialize to an appropriate value
  22. int expected = 0; // TODO: Initialize to an appropriate value
  23. int actual;
  24. target.BytesSent = expected;
  25. actual = target.BytesSent;
  26. Assert.AreEqual(expected, actual);
  27. Assert.Inconclusive("Verify the correctness of this test method.");
  28. }
  29. /// <summary>
  30. ///A test for BytesReceived
  31. ///</summary>
  32. [TestMethod()]
  33. public void BytesReceivedTest()
  34. {
  35. SshCommand command = null; // TODO: Initialize to an appropriate value
  36. CommandAsyncResult target = new CommandAsyncResult(command); // TODO: Initialize to an appropriate value
  37. int expected = 0; // TODO: Initialize to an appropriate value
  38. int actual;
  39. target.BytesReceived = expected;
  40. actual = target.BytesReceived;
  41. Assert.AreEqual(expected, actual);
  42. Assert.Inconclusive("Verify the correctness of this test method.");
  43. }
  44. }
  45. }