SftpFileSytemInformationTest.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Renci.SshNet.Sftp;
  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 SftpFileSytemInformationTest and is intended
  9. ///to contain all SftpFileSytemInformationTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. public class SftpFileSytemInformationTest : TestBase
  13. {
  14. /// <summary>
  15. ///A test for IsReadOnly
  16. ///</summary>
  17. [TestMethod()]
  18. public void IsReadOnlyTest()
  19. {
  20. ulong bsize = 0; // TODO: Initialize to an appropriate value
  21. ulong frsize = 0; // TODO: Initialize to an appropriate value
  22. ulong blocks = 0; // TODO: Initialize to an appropriate value
  23. ulong bfree = 0; // TODO: Initialize to an appropriate value
  24. ulong bavail = 0; // TODO: Initialize to an appropriate value
  25. ulong files = 0; // TODO: Initialize to an appropriate value
  26. ulong ffree = 0; // TODO: Initialize to an appropriate value
  27. ulong favail = 0; // TODO: Initialize to an appropriate value
  28. ulong sid = 0; // TODO: Initialize to an appropriate value
  29. ulong flag = 0; // TODO: Initialize to an appropriate value
  30. ulong namemax = 0; // TODO: Initialize to an appropriate value
  31. SftpFileSytemInformation target = new SftpFileSytemInformation(bsize, frsize, blocks, bfree, bavail, files, ffree, favail, sid, flag, namemax); // TODO: Initialize to an appropriate value
  32. bool actual;
  33. actual = target.IsReadOnly;
  34. Assert.Inconclusive("Verify the correctness of this test method.");
  35. }
  36. /// <summary>
  37. ///A test for SupportsSetUid
  38. ///</summary>
  39. [TestMethod()]
  40. public void SupportsSetUidTest()
  41. {
  42. ulong bsize = 0; // TODO: Initialize to an appropriate value
  43. ulong frsize = 0; // TODO: Initialize to an appropriate value
  44. ulong blocks = 0; // TODO: Initialize to an appropriate value
  45. ulong bfree = 0; // TODO: Initialize to an appropriate value
  46. ulong bavail = 0; // TODO: Initialize to an appropriate value
  47. ulong files = 0; // TODO: Initialize to an appropriate value
  48. ulong ffree = 0; // TODO: Initialize to an appropriate value
  49. ulong favail = 0; // TODO: Initialize to an appropriate value
  50. ulong sid = 0; // TODO: Initialize to an appropriate value
  51. ulong flag = 0; // TODO: Initialize to an appropriate value
  52. ulong namemax = 0; // TODO: Initialize to an appropriate value
  53. SftpFileSytemInformation target = new SftpFileSytemInformation(bsize, frsize, blocks, bfree, bavail, files, ffree, favail, sid, flag, namemax); // TODO: Initialize to an appropriate value
  54. bool actual;
  55. actual = target.SupportsSetUid;
  56. Assert.Inconclusive("Verify the correctness of this test method.");
  57. }
  58. }
  59. }