public void IsFilesSelected_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var activity = new SharepointReadFolderItemActivity {
                UniqueID = uniqueId, Result = "A", IsFilesSelected = true
            };
            var activity1 = new SharepointReadFolderItemActivity {
                UniqueID = uniqueId, Result = "A", IsFilesSelected = true
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(activity.Equals(activity1));
            //---------------Execute Test ----------------------
            activity.IsFoldersSelected  = true;
            activity1.IsFoldersSelected = false;
            var @equals = activity.Equals(activity1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void IsFilesSelected_Same_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var sharepointFileDownLoadActivity = new SharepointReadFolderItemActivity {
                UniqueID = uniqueId, Result = "A", IsFilesSelected = true
            };
            var sharepoint = new SharepointReadFolderItemActivity {
                UniqueID = uniqueId, Result = "A", IsFilesSelected = true
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(sharepointFileDownLoadActivity.Equals(sharepoint));
            //---------------Execute Test ----------------------
            sharepointFileDownLoadActivity.IsFilesSelected = true;
            sharepoint.IsFilesSelected = true;
            var @equals = sharepointFileDownLoadActivity.Equals(sharepoint);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void UniqueIDDifferent_EmptySharepointCopyFile_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId  = Guid.NewGuid().ToString();
            var activity1 = new SharepointReadFolderItemActivity();
            var activity  = new SharepointReadFolderItemActivity();

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void Equals_Given_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId  = Guid.NewGuid().ToString();
            var activity1 = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, DisplayName = "A"
            };
            var activity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, DisplayName = "ass"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void SharepointServerResourceId_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var sharepointReadFolderItemActivity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, SharepointServerResourceId = Guid.NewGuid()
            };
            var sharepoint = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, SharepointServerResourceId = Guid.NewGuid()
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(sharepointReadFolderItemActivity);
            //---------------Execute Test ----------------------
            var @equals = sharepointReadFolderItemActivity.Equals(sharepoint);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void ServerInputPath_Different_Object_Is_Not_Equal_CaseSensitive()
        {
            //---------------Set up test pack-------------------
            var uniqueId  = Guid.NewGuid().ToString();
            var activity1 = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, ServerInputPath = "AAA"
            };
            var activity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, ServerInputPath = "aaa"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void ServerInputPath_Same_Object_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId  = Guid.NewGuid().ToString();
            var activity1 = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, ServerInputPath = "a"
            };
            var activity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId, ServerInputPath = "a"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void UniqueIDEquals_EmptySharepointCopyFile_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var sharepointReadFolderItemActivity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId
            };
            var copyFileActivity = new SharepointReadFolderItemActivity()
            {
                UniqueID = uniqueId
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(sharepointReadFolderItemActivity);
            //---------------Execute Test ----------------------
            var equals = sharepointReadFolderItemActivity.Equals(copyFileActivity);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }