public void EscapeScript_Same_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId           = Guid.NewGuid().ToString();
            var javascriptActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, EscapeScript = true
            };
            var dsfPythonActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, EscapeScript = false
            };

            //---------------Assert Precondition----------------
            Assert.IsFalse(javascriptActivity.Equals(dsfPythonActivity));
            //---------------Execute Test ----------------------
            javascriptActivity.EscapeScript = true;
            dsfPythonActivity.EscapeScript  = true;
            var @equals = javascriptActivity.Equals(dsfPythonActivity);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void UniqueIDDifferent_EmptyCountRecordset_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var dsfPythonActivity  = new DsfPythonActivity();
            var javascriptActivity = new DsfPythonActivity();

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

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

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void ScriptType_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId           = Guid.NewGuid().ToString();
            var javascriptActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, ScriptType = enScriptType.JavaScript
            };
            var dsfPythonActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, ScriptType = enScriptType.Python
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void IncludeFile_Different_Object_Is_Not_Equal_CaseSensitive()
        {
            //---------------Set up test pack-------------------
            var uniqueId           = Guid.NewGuid().ToString();
            var javascriptActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, IncludeFile = "AAA"
            };
            var dsfPythonActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, IncludeFile = "aaa"
            };

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

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void IncludeFile_Same_Object_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId           = Guid.NewGuid().ToString();
            var javascriptActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, IncludeFile = "a"
            };
            var dsfPythonActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId, IncludeFile = "a"
            };

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

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void UniqueIDEquals_EmptyJavascript_Object_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId          = Guid.NewGuid().ToString();
            var dsfPythonActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId
            };
            var javascriptActivity = new DsfPythonActivity()
            {
                UniqueID = uniqueId
            };

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

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