ZlibStreamTest.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. [Ignore] // placeholder
  20. public void ZlibStreamConstructorTest()
  21. {
  22. Stream stream = null; // TODO: Initialize to an appropriate value
  23. CompressionMode mode = new CompressionMode(); // TODO: Initialize to an appropriate value
  24. ZlibStream target = new ZlibStream(stream, mode);
  25. Assert.Inconclusive("TODO: Implement code to verify target");
  26. }
  27. /// <summary>
  28. ///A test for Write
  29. ///</summary>
  30. [TestMethod]
  31. [Ignore] // placeholder
  32. public void WriteTest()
  33. {
  34. Stream stream = null; // TODO: Initialize to an appropriate value
  35. CompressionMode mode = new CompressionMode(); // TODO: Initialize to an appropriate value
  36. ZlibStream target = new ZlibStream(stream, mode); // TODO: Initialize to an appropriate value
  37. byte[] buffer = null; // TODO: Initialize to an appropriate value
  38. int offset = 0; // TODO: Initialize to an appropriate value
  39. int count = 0; // TODO: Initialize to an appropriate value
  40. target.Write(buffer, offset, count);
  41. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  42. }
  43. }
  44. }