2
0

SftpFileSystemInformationTest.cs 3.0 KB

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