| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- using Renci.SshNet.Sftp;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using System;
- using Renci.SshNet.Tests.Common;
- namespace Renci.SshNet.Tests
- {
- /// <summary>
- ///This is a test class for SftpFileAttributesTest and is intended
- ///to contain all SftpFileAttributesTest Unit Tests
- ///</summary>
- [TestClass()]
- public class SftpFileAttributesTest : TestBase
- {
- /// <summary>
- ///A test for SetPermissions
- ///</summary>
- [TestMethod()]
- public void SetPermissionsTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- short mode = 0; // TODO: Initialize to an appropriate value
- target.SetPermissions(mode);
- Assert.Inconclusive("A method that does not return a value cannot be verified.");
- }
- /// <summary>
- ///A test for GroupCanExecute
- ///</summary>
- [TestMethod()]
- public void GroupCanExecuteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.GroupCanExecute = expected;
- actual = target.GroupCanExecute;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for GroupCanRead
- ///</summary>
- [TestMethod()]
- public void GroupCanReadTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.GroupCanRead = expected;
- actual = target.GroupCanRead;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for GroupCanWrite
- ///</summary>
- [TestMethod()]
- public void GroupCanWriteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.GroupCanWrite = expected;
- actual = target.GroupCanWrite;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for GroupId
- ///</summary>
- [TestMethod()]
- public void GroupIdTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- int expected = 0; // TODO: Initialize to an appropriate value
- int actual;
- target.GroupId = expected;
- actual = target.GroupId;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for LastAccessTime
- ///</summary>
- [TestMethod()]
- public void LastAccessTimeTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
- DateTime actual;
- target.LastAccessTime = expected;
- actual = target.LastAccessTime;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for LastWriteTime
- ///</summary>
- [TestMethod()]
- public void LastWriteTimeTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- DateTime expected = new DateTime(); // TODO: Initialize to an appropriate value
- DateTime actual;
- target.LastWriteTime = expected;
- actual = target.LastWriteTime;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OthersCanExecute
- ///</summary>
- [TestMethod()]
- public void OthersCanExecuteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OthersCanExecute = expected;
- actual = target.OthersCanExecute;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OthersCanRead
- ///</summary>
- [TestMethod()]
- public void OthersCanReadTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OthersCanRead = expected;
- actual = target.OthersCanRead;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OthersCanWrite
- ///</summary>
- [TestMethod()]
- public void OthersCanWriteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OthersCanWrite = expected;
- actual = target.OthersCanWrite;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OwnerCanExecute
- ///</summary>
- [TestMethod()]
- public void OwnerCanExecuteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OwnerCanExecute = expected;
- actual = target.OwnerCanExecute;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OwnerCanRead
- ///</summary>
- [TestMethod()]
- public void OwnerCanReadTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OwnerCanRead = expected;
- actual = target.OwnerCanRead;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for OwnerCanWrite
- ///</summary>
- [TestMethod()]
- public void OwnerCanWriteTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- bool expected = false; // TODO: Initialize to an appropriate value
- bool actual;
- target.OwnerCanWrite = expected;
- actual = target.OwnerCanWrite;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for Size
- ///</summary>
- [TestMethod()]
- public void SizeTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- long expected = 0; // TODO: Initialize to an appropriate value
- long actual;
- target.Size = expected;
- actual = target.Size;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for UserId
- ///</summary>
- [TestMethod()]
- public void UserIdTest()
- {
- SftpFileAttributes target = SftpFileAttributes.Empty; // TODO: Initialize to an appropriate value
- int expected = 0; // TODO: Initialize to an appropriate value
- int actual;
- target.UserId = expected;
- actual = target.UserId;
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- }
- }
|