Esempio n. 1
0
        public void DsfWebGetRequestActivity_GetForEachInputs_WhenHasExpression_ReturnsInputList()
        {
            //------------Setup for test--------------------------
            const string Url    = "[[CompanyName]]";
            const string result = "[[res]]";
            var          act    = new DsfWebGetRequestActivity {
                Url = Url, Result = result
            };

            //------------Execute Test---------------------------
            var dsfForEachItems = act.GetForEachInputs();

            //------------Assert Results-------------------------
            Assert.AreEqual(1, dsfForEachItems.Count);
            Assert.AreEqual(Url, dsfForEachItems[0].Name);
            Assert.AreEqual(Url, dsfForEachItems[0].Value);
        }
        public void DsfWebGetRequestActivity_GetForEachInputs_WhenHasExpression_ReturnsInputList()
        {
            //------------Setup for test--------------------------
            const string Url = "[[CompanyName]]";
            const string result = "[[res]]";
            var act = new DsfWebGetRequestActivity { Url = Url, Result = result };

            //------------Execute Test---------------------------
            var dsfForEachItems = act.GetForEachInputs();
            //------------Assert Results-------------------------
            Assert.AreEqual(1, dsfForEachItems.Count);
            Assert.AreEqual(Url, dsfForEachItems[0].Name);
            Assert.AreEqual(Url, dsfForEachItems[0].Value);
        }