ZlibStreamTest.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Renci.SshNet.Compression;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using System.IO;
  5. using Renci.SshNet.Tests.Common;
  6. namespace Renci.SshNet.Tests.Classes.Compression
  7. {
  8. /// <summary>
  9. ///This is a test class for ZlibStreamTest and is intended
  10. ///to contain all ZlibStreamTest Unit Tests
  11. ///</summary>
  12. [TestClass()]
  13. public class ZlibStreamTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for ZlibStream Constructor
  17. ///</summary>
  18. [TestMethod()]
  19. public void ZlibStreamConstructorTest()
  20. {
  21. Stream stream = null; // TODO: Initialize to an appropriate value
  22. CompressionMode mode = new CompressionMode(); // TODO: Initialize to an appropriate value
  23. ZlibStream target = new ZlibStream(stream, mode);
  24. Assert.Inconclusive("TODO: Implement code to verify target");
  25. }
  26. /// <summary>
  27. ///A test for Write
  28. ///</summary>
  29. [TestMethod()]
  30. public void WriteTest()
  31. {
  32. Stream stream = null; // TODO: Initialize to an appropriate value
  33. CompressionMode mode = new CompressionMode(); // TODO: Initialize to an appropriate value
  34. ZlibStream target = new ZlibStream(stream, mode); // TODO: Initialize to an appropriate value
  35. byte[] buffer = null; // TODO: Initialize to an appropriate value
  36. int offset = 0; // TODO: Initialize to an appropriate value
  37. int count = 0; // TODO: Initialize to an appropriate value
  38. target.Write(buffer, offset, count);
  39. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  40. }
  41. }
  42. }