public void DsfDropBoxDownloadActivity_Equals_IsEqual_ExpectTrue()
        {
            //-----------------------Arrange----------------------------
            var dsfDropBoxDownloadActivity = new DsfDropBoxDownloadActivity();

            //-----------------------Act--------------------------------
            //-----------------------Assert-----------------------------
            Assert.IsTrue(dsfDropBoxDownloadActivity.Equals(dsfDropBoxDownloadActivity));
        }
        public void DropBoxSource_Same_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var dropBoxDeleteActivity = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, Result = "A"
            };
            var dropBoxDeleteActivity1 = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, Result = "A"
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(dropBoxDeleteActivity.Equals(dropBoxDeleteActivity1));
            //---------------Execute Test ----------------------
            dropBoxDeleteActivity.SelectedSource  = new DropBoxSource();
            dropBoxDeleteActivity1.SelectedSource = new DropBoxSource();
            var @equals = dropBoxDeleteActivity.Equals(dropBoxDeleteActivity1);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void OverwriteFile_Same_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId         = Guid.NewGuid().ToString();
            var rabbitMqActivity = new DsfDropBoxDownloadActivity()
            {
                UniqueID = uniqueId, Result = "A"
            };
            var rabbitMqActivity1 = new DsfDropBoxDownloadActivity()
            {
                UniqueID = uniqueId, Result = "A"
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(rabbitMqActivity.Equals(rabbitMqActivity1));
            //---------------Execute Test ----------------------
            rabbitMqActivity.OverwriteFile  = true;
            rabbitMqActivity1.OverwriteFile = true;
            var @equals = rabbitMqActivity.Equals(rabbitMqActivity1);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void DsfDropBoxDownloadActivity_Equals_Given_Same_Object_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, DisplayName = "a"
            };
            var multiAssign1 = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, DisplayName = "a"
            };

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void DsfDropBoxDownloadActivity_UniqueID_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId
            };
            var multiAssign1 = new DsfDropBoxDownloadActivity {
                UniqueID = Guid.NewGuid().ToString()
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void DsfDropBoxDownloadActivity_UniqueIDEquals_EmptyDropBoxDeleteActivities_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId
            };
            var multiAssign1 = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId
            };

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void DsfDropBoxDownloadActivity_ToPath_Different_Object_Is_Not_Equal_CaseSensitive()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, ToPath = "AAA"
            };
            var multiAssign1 = new DsfDropBoxDownloadActivity {
                UniqueID = uniqueId, ToPath = "aaa"
            };

            //---------------Assert DsfDropBoxDownloadActivity----------------
            Assert.IsNotNull(multiAssign);
            //---------------Execute Test ----------------------
            var @equals = multiAssign.Equals(multiAssign1);

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