CompressorTest.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using Renci.SshNet.Compression;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using Renci.SshNet;
  5. using Renci.SshNet.Tests.Common;
  6. namespace Renci.SshNet.Tests.Classes.Compression
  7. {
  8. /// <summary>
  9. ///This is a test class for CompressorTest and is intended
  10. ///to contain all CompressorTest Unit Tests
  11. ///</summary>
  12. [TestClass]
  13. [Ignore] // placeholders only
  14. public class CompressorTest : TestBase
  15. {
  16. internal virtual Compressor CreateCompressor()
  17. {
  18. // TODO: Instantiate an appropriate concrete class.
  19. Compressor target = null;
  20. return target;
  21. }
  22. /// <summary>
  23. ///A test for Compress
  24. ///</summary>
  25. [TestMethod()]
  26. public void CompressTest()
  27. {
  28. Compressor target = CreateCompressor(); // TODO: Initialize to an appropriate value
  29. byte[] data = null; // TODO: Initialize to an appropriate value
  30. byte[] expected = null; // TODO: Initialize to an appropriate value
  31. byte[] actual;
  32. actual = target.Compress(data);
  33. Assert.AreEqual(expected, actual);
  34. Assert.Inconclusive("Verify the correctness of this test method.");
  35. }
  36. /// <summary>
  37. ///A test for Decompress
  38. ///</summary>
  39. [TestMethod()]
  40. public void DecompressTest()
  41. {
  42. Compressor target = CreateCompressor(); // TODO: Initialize to an appropriate value
  43. byte[] data = null; // TODO: Initialize to an appropriate value
  44. byte[] expected = null; // TODO: Initialize to an appropriate value
  45. byte[] actual;
  46. actual = target.Decompress(data);
  47. Assert.AreEqual(expected, actual);
  48. Assert.Inconclusive("Verify the correctness of this test method.");
  49. }
  50. /// <summary>
  51. ///A test for Dispose
  52. ///</summary>
  53. [TestMethod()]
  54. public void DisposeTest()
  55. {
  56. Compressor target = CreateCompressor(); // TODO: Initialize to an appropriate value
  57. target.Dispose();
  58. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  59. }
  60. /// <summary>
  61. ///A test for Init
  62. ///</summary>
  63. [TestMethod()]
  64. public void InitTest()
  65. {
  66. Compressor target = CreateCompressor(); // TODO: Initialize to an appropriate value
  67. Session session = null; // TODO: Initialize to an appropriate value
  68. target.Init(session);
  69. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  70. }
  71. }
  72. }