public void Equals_Given_Same_Headers_DifferentIndexes_IsNotEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var headers  = new List <INameValue> {
                new NameValue("b", "y"), new NameValue("a", "x")
            };
            var headers2 = new List <INameValue> {
                new NameValue("a", "x"), new NameValue("b", "y")
            };
            var webGet = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, Headers = headers
            };
            var webGet1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, Headers = headers
            };

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void Equals_Given_Different_OutputDescription_IsNOTEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var outDescr = new OutputDescription()
            {
                Format = OutputFormats.Unknown
            };
            var outDescr2 = new OutputDescription()
            {
                Format = OutputFormats.ShapedXML
            };
            var webGet = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, OutputDescription = outDescr
            };
            var webGet1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, OutputDescription = outDescr2
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void Equals_Given_SameWebGetTool_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId        = Guid.NewGuid().ToString();
            var webGetActivity  = new DsfWebGetActivity();
            var webGetActivity1 = webGetActivity;

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void Equals_Given_Same_DisplayName_Value_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var webGet   = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, DisplayName = ""
            };
            var webGet1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, DisplayName = ""
            };

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void Equals_Given_Different_QueryString_IsNOTEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var webGet   = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, QueryString = "A"
            };
            var webGet1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, QueryString = "B"
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void Equals_Given_DifferentWebGetToolIds_AreNotEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId       = Guid.NewGuid().ToString();
            var uniqueId2      = Guid.NewGuid().ToString();
            var webGetActivity = new DsfWebGetActivity()
            {
                UniqueID = uniqueId
            };
            var webGetActivity1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId2
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void Equals_Given_Same_OutputDescription_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var outDescr = new OutputDescription();
            var webGet   = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, OutputDescription = outDescr
            };
            var webGet1 = new DsfWebGetActivity()
            {
                UniqueID = uniqueId, OutputDescription = outDescr
            };

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

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